mysql_session_track_get_first(3) | MariaDB Connector/C | mysql_session_track_get_first(3) |
mysql_session_track_get_first - retrieves first session status change information
#include <mysql.h> int mysql_session_track_get_first(MYSQL * mysql,
enum enum_session_state_type type,
const char **data,
size_t *length );
mysql_session_track_get_first() retrieves the first session status change information received from the server.
Depending on the specified type the read only data pointer will contain the following information: * SESSION_TRACK_SCHEMA: The name of the default schema (database) * SESSION_TRACK_SYSTEM_VARIABLES: If a session system variable is changed, the first call contains the name of the changed system variable, the second call contains the new value. Both name and value are represented as strings. * SESSION_TRACK_STATE_CHANGE: shows whether the session status has changed. The value is changed as string “1” (changed) or “0” (unchanged).
Further data needs to be obtained by calling mysql_session_track_get_next(3).
Zero for success, nonzero if no session tracking information is available.
mysql_session_track_get_first() was added in Connector/C 3.0 and MariaDB Server 10.2.
Version 3.3.1 |