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
1160
February 20, 2020 08:21PM
662
February 24, 2020 08:12AM
569
March 03, 2020 02:01PM
553
March 04, 2020 03:07AM
603
March 04, 2020 03:21AM
577
March 05, 2020 12:34PM
494
March 09, 2020 08:58AM
591
March 11, 2020 01:18AM
649
March 11, 2020 01:40AM
Re: CDK Error: Reply blocked by a previous one.
589
March 12, 2020 11:17AM
447
August 13, 2020 05:21PM
511
August 14, 2020 11:06AM
463
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.