mysql_stmt_attr_get — Used to get the current value of a statement attribute
my_bool mysql_stmt_attr_get(MYSQL_STMT * stmt,
enum enum_stmt_attr_type,
void * attr);Gets the current value of a statement attribute.
stmtA statement handle, which was previously allocated by mysql_stmt_init().
enum_stmt_attr_typeThe attribute you want to get. Possible values are:
Indicates if mysql_stmt_store_result() will update the max_length value of MYSQL_FIELD structures.
Cursor type. Possible values are CURSOR_TYPE_READ_ONLY or default value CURSOR_TYPE_NO_CURSOR.
Number of rows which will be prefetched. The default value is 1.
attrPointer to a variable, which will contain the attribute value.