Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
None
-
None
Description
COM_STMT_CLOSE packet is sent to server even after PREPARE fail.
example to reproduced :
MYSQL_STMT *stmt;
|
stmt= mysql_stmt_init(mysql);
|
rc= mysql_stmt_prepare(stmt, SL("wrong query")); |
mysql_stmt_close(stmt); => fail with error prepared statement with id 0 fail |
(an error is only send back when using maxscale, see https://travis-ci.com/github/mariadb-corporation/mariadb-connector-c/builds/215050216)