mysql_stmt_attr_get(3)

Gets the current value of a statement attribute #include f[B] f[R] my_bool mysql_stmt_attr_get(MYSQL

Section 3 libmariadb-dev bookworm source

Description

mysql_stmt_attr_get

Name

mysql_stmt_attr_get - Gets the current value of a statement attribute

Synopsis

#include <mysql.h>

my_bool mysql_stmt_attr_get(MYSQL_STMT * stmt,
enum
enum_stmt_attr_type,
void * attr);

Description

Gets the current value of a statement attribute. Returns zero on success, non zero on failure.

Parameter

stmt - a statement handle, which was previously allocated by mysql_stmt_init(3).

enum_stmt_attr_type - attribute. See below.

attr - pointer to a variable, which will contain the attribute value.

Attribute types

The enum_stmt_attr_type parameter has the following possible values:

Image grohtml-78079-1.png

Notes

Setting the number of prefetched rows will work only for read only cursors.

See Also

mysql_stmt_attr_set(3)