FreeBSD manual

download PDF document: mysql_session_track_get_next.3.pdf

mysql_session_track_get_next(3) MariaDB Connector/C
Name mysql_session_track_get_next - Retrieves the next session status change information
Synopsis
#include <mysql.h>
int mysql_session_track_get_next(MYSQL * mysql, enum enum_session_state_type type, const char **data, size_t *length );

Description mysql_session_track_get_next() retrieves the session status change information received from the server after a successful call to mysql_session_track_get_first(3).
mysql_session_track_get_next() needs to be called repeatedly until a non zero return value indicates end of data.
Parameters o mysql - mysql handle, which was previously allocated by mysql_init(3) and connected bys mysql_real_connect(3).
o type - type of information. Valid values are
o SESSION_TRACK_SYSTEM_VARIABLES
o SESSION_TRACK_SCHEMA
o SESSION_TRACK_STATE_CHANGE
o SESSION_TRACK_GTIDS (unsupported)
o data - pointer to data, which must be declared as const char *
o length - pointer to a size_t variable, which will contain the length of data
Return value Zero for success, nonzero if an error occurred.
History mysql_session_track_get_next() was added in Connector/C 3.0 and MariaDB Server 10.2.
See also mysql_session_track_get_first(3)
Version 3.3.1 mysql_session_track_get_next(3)