You can call the mysql_stmt_attr_get() function to get the current value for a statement attribute.
Syntax
my_bool
mysql_stmt_attr_get(MYSQL_STMT *stmt,
enum enum_stmt_attr_type option,
void *arg)
Arguments
optionis the option that you want to get.argpoints to a variable that contains the option value. If the option is an integer,argshould point to the value of the integer.
Return values
0 is returned for an execution success, and a non-zero value is returned if option is unknown.
Errors
None.