[CONC-349] prepared statement state information Created: 2018-07-25  Updated: 2018-10-23  Resolved: 2018-10-23

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

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


 Description   

Currently it's not possible to retrieve the internal status of a prepared statement without accessing the member of MYSQL_STMT structure.

The different states are defined in enum_mysqlnd_stmt_state, but there is no api function for retrieving the current statement status.

Proposal: Add an additional enum value STMT_ATTR_STATE and retrieve the statement state with mysql_stmt_attr_get:

enum_mysqlnd_stmt_state state;
mysql_stmt_attr_get(stmt, STMT_ATTR_STATE, &state):


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