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
826
February 20, 2020 08:21PM
455
February 24, 2020 08:12AM
405
March 03, 2020 02:01PM
392
March 04, 2020 03:07AM
428
March 04, 2020 03:21AM
395
March 05, 2020 12:34PM
388
March 09, 2020 08:58AM
422
March 11, 2020 01:18AM
373
March 11, 2020 01:40AM
Re: CDK Error: Reply blocked by a previous one.
459
March 12, 2020 11:17AM
315
August 13, 2020 05:21PM
326
August 14, 2020 11:06AM
330
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.