Re: CDK Error: Reply blocked by a previous one.
So I have added some info about the root cause of this problem to the bug (https://bugs.mysql.com/bug.php?id=98827). Before we fix it, the error can be avoided if the result variable is made local, so that it is destroyed before next command is sent to the server. So change the original code like this:
auto res = mySession.sql("call abc.xyz();").execute();
int n = res.count();
auto res2 = mySession.sql("commit;").execute();
to something like this:
int n;
{
auto res = mySession.sql("call abc.xyz();").execute();
n = res.count();
}
auto res2 = mySession.sql("commit;").execute();
Subject
Views
Written By
Posted
771
February 20, 2020 08:21PM
429
February 24, 2020 08:12AM
374
March 03, 2020 02:01PM
371
March 04, 2020 03:07AM
400
March 04, 2020 03:21AM
362
March 05, 2020 12:34PM
367
March 09, 2020 08:58AM
394
March 11, 2020 01:18AM
346
March 11, 2020 01:40AM
Re: CDK Error: Reply blocked by a previous one.
421
March 12, 2020 11:17AM
292
August 13, 2020 05:21PM
299
August 14, 2020 11:06AM
307
August 17, 2020 01:35PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.