[CONC-523] COM_STMT_CLOSE send to server after prepare fail Created: 2021-01-29  Updated: 2021-02-08  Resolved: 2021-02-08

Status: Closed
Project: MariaDB Connector/C
Component/s: Other
Affects Version/s: None
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Diego Dupin Assignee: Georg Richter
Resolution: Not a Bug Votes: 1
Labels: 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)



 Comments   
Comment by Sayan Mukherjee [ 2021-02-07 ]

I'm a beginner and already have gone through https://travis-ci.com/github/mariadb-corporation/mariadb-connector-c/builds/215050216 . Want to fix https://jira.mariadb.org/browse/CONC-523.

Comment by Diego Dupin [ 2021-02-08 ]

This issue has been identified beeing maxscale side : https://jira.mariadb.org/browse/MXS-3392

closing this issue, since nothing related to c/c

Generated at Thu Feb 08 03:05:55 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.