my_bool mysql_stmt_attr_get(MYSQL_STMT *stmt, enum
enum_stmt_attr_type option, void *arg)
Description
Can be used to get the current value for a statement attribute.
The option
argument is the option that you
want to get; the arg
should point to a
variable that should contain the option value. If the option is
an integer, then arg
should point to the
value of the integer.
See Section 20.8.7.3, “mysql_stmt_attr_set()
”, for a list of options
and option types.
In MySQL 5.0,
mysql_stmt_attr_get()
uses
unsigned int *
, not my_bool
*
, for
STMT_ATTR_UPDATE_MAX_LENGTH
. This was
corrected in MySQL 5.1.7.
Return Values
Zero if successful. Nonzero if option
is
unknown.
Errors
None.
User Comments
Add your own comment.