Details
-
New Feature
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
Especially for debugging purposes it would be much easier if we could obtain the SQL statement passed to a previous mysql_stmt_prepare call.
Example:
MARIADB_CONST_STRING stmt_str;
|
|
rc= mysql_stmt_prepare(stmt, "SELECT ?,?", -1);
|
check_stmt_rc(rc, stmt);
|
|
rc= mysql_stmt_attr_get(stmt, STMT_ATTR_SQL_STATEMENT, &stmt_str);
|
check_stmt_rc(rc, stmt);
|