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
1287
February 20, 2020 08:21PM
687
February 24, 2020 08:12AM
608
March 03, 2020 02:01PM
587
March 04, 2020 03:07AM
637
March 04, 2020 03:21AM
610
March 05, 2020 12:34PM
527
March 09, 2020 08:58AM
625
March 11, 2020 01:18AM
702
March 11, 2020 01:40AM
Re: CDK Error: Reply blocked by a previous one.
610
March 12, 2020 11:17AM
482
August 13, 2020 05:21PM
548
August 14, 2020 11:06AM
497
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.