mysql_stmt_attr_get
mysql_stmt_attr_get retrieves the current value of a prepared statement attribute, such as cursor type, prefetch row count, or max-length update behavior.
Syntax
my_bool mysql_stmt_attr_get(MYSQL_STMT * stmt,
enum enum_stmt_attr_type,
void * attr);Parameters
Parameter
Description
Description
Attribute Types
my_bool is_update; rc= mysql_stmt_attr_get(stmt, STMT_ATTR_UPDATE_MAX_LENGTH, &is_update);unsigned long cursor_type; rc= mysql_stmt_attr_get(stmt, STMT_ATTR_CURSOR_TYPE, &cursor_type);unsigned long prefetch_rows; rc= mysql_stmt_attr_get(stmt, STMT_ATTR_PREFETCH_ROWS, &prefetch_rows);unsigned int param_count; rc= mysql_stmt_attr_get(stmt, STMT_ATTR_PREBIND_PARAMS, ¶m_count);enum mysql_stmt_state stmt_state; rc= mysql_stmt_attr_get(stmt, STMT_ATTR_STATE, &stmt_state);MARIADB_CONST_STRING sql_statement; rc= mysql_stmt_attr_get(stmt, STMR_ATTR_SQL_STATEMENT, &sql_statement);
See Also
Last updated
Was this helpful?

