1mysql_session_track_get_next(3)MariaDB Connector/mCysql_session_track_get_next(3)
2
3
4
5 Name
6 mysql_session_track_get_next - Retrieves the next session status change
7 information
8
9 Synopsis
10 #include <mysql.h>
11
12 int mysql_session_track_get_next(MYSQL * mysql,
13 enum enum_session_state_type type,
14 const char **data,
15 size_t *length );
16
17 Description
18 mysql_session_track_get_next() retrieves the session status change in‐
19 formation received from the server after a successful call to
20 mysql_session_track_get_first(3).
21
22 mysql_session_track_get_next() needs to be called repeatedly until a
23 non zero return value indicates end of data.
24
25 Parameters
26 • mysql - mysql handle, which was previously allocated by mysql_init(3)
27 and connected bys mysql_real_connect(3).
28
29 • type - type of information. Valid values are
30
31 • SESSION_TRACK_SYSTEM_VARIABLES
32
33 • SESSION_TRACK_SCHEMA
34
35 • SESSION_TRACK_STATE_CHANGE
36
37 • SESSION_TRACK_GTIDS (unsupported)
38
39 • data - pointer to data, which must be declared as const char *
40
41 • length - pointer to a size_t variable, which will contain the length
42 of data
43
44 Return value
45 Zero for success, nonzero if an error occurred.
46
47 History
48 mysql_session_track_get_next() was added in Connector/C 3.0 and MariaDB
49 Server 10.2.
50
51 See also
52 mysql_session_track_get_first(3)
53
54
55
56Version 3.2.2 mysql_session_track_get_next(3)