[CONC-522] mysql_stmt_reset sends COM_STMT_CLOSE even when not in prepared state Created: 2021-01-20  Updated: 2021-01-25  Resolved: 2021-01-20

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 3.1.11
Fix Version/s: 3.1.12

Type: New Feature Priority: Major
Reporter: Georg Richter Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None


 Description   

The mysql_stmt_reset() api call should reset a statement on server and client side and set the statement state to prepared.
If the statement wasn't prepared before (or the a previous prepare failed), mysql_stmt_reset() will send an unnecessary COM_STMT_CLOSE command with stmt id=0 to the server.



 Comments   
Comment by Georg Richter [ 2021-01-20 ]

Fixed (rev. ef3d315796f79658086098ce6c7a5a56b6b3fdb3)

Comment by Diego Dupin [ 2021-01-25 ]

for information for maxscale, this correct an issue that would result in an error : "Unknown prepared statement handler (0) given to MaxScale"

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