Re: mysql_stmt_close() hangs after query interruption
One of my ideas was to skip the call to mysql_stmt_close(stmt) in statement interruption error (mysql_errno(conn) == 1317) is detected...
Even if the statement handle (and maybe cursor resources on server side) are not released, it is not critical, since statement interruption should not occur very often...
But unfortunately the next call to mysql_stmt_init(conn) gives error 2014 (CR_COMMANDS_OUT_OF_SYNC) !!! Maybe some internal flag is de-synchronized after statement interruption?
Also tried different combinations of mysql_stmt_free_result(stmt) and mysql_stmt_reset(stmt) ... no way...
Seb
Subject
Views
Written By
Posted
1347
March 25, 2020 07:55AM
428
March 25, 2020 08:08AM
Re: mysql_stmt_close() hangs after query interruption
442
March 26, 2020 03:42AM
354
June 24, 2020 08:59AM
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.