Documentation Home
MySQL 8.0 C API Developer Guide
Download this Manual
PDF (US Ltr) - 1.2Mb
PDF (A4) - 1.2Mb
HTML Download (TGZ) - 159.0Kb
HTML Download (Zip) - 190.2Kb

11.2 mysql_stmt_attr_get()

mysql_stmt_attr_get(MYSQL_STMT *stmt,
                    enum enum_stmt_attr_type option,
                    void *arg)


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, arg should point to the value of the integer.

See Section 11.3, “mysql_stmt_attr_set()”, for a list of options and option types.

Return Values

Zero for success. Nonzero if option is unknown.