MySQL 26.7.0
Source Code Documentation
mysql_command_session_state_bits.h
Go to the documentation of this file.
1/* Copyright (c) 2026, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is designed to work with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have either included with
13the program or referenced in the documentation.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef COMPONENTS_SERVICES_BITS_MYSQL_COMMAND_SESSION_STATE_BITS_H
25#define COMPONENTS_SERVICES_BITS_MYSQL_COMMAND_SESSION_STATE_BITS_H
26
27#include <stdint.h>
28
30
31/**
32 Status codes returned by mysql_command_session_state service methods.
33*/
35 // Success
37
38 // Item not available or the iterator has no more items
40
41 // Invalid input arg
43
44 // Caller buffer is NULL or too small. Required length is returned
46
47 // Internal error while reading or copying session-state data
49};
50
51/**
52 Mirror enum_session_state_type values from mysql_com.h to keep this header
53 independent from mysql.h so the service API does not expose the client C API.
54*/
55#define MYSQL_COMMAND_SESSION_TRACK_SYSTEM_VARIABLES 0
56#define MYSQL_COMMAND_SESSION_TRACK_SCHEMA 1
57#define MYSQL_COMMAND_SESSION_TRACK_STATE_CHANGE 2
58#define MYSQL_COMMAND_SESSION_TRACK_GTIDS 3
59#define MYSQL_COMMAND_SESSION_TRACK_TRANSACTION_CHARACTERISTICS 4
60#define MYSQL_COMMAND_SESSION_TRACK_TRANSACTION_STATE 5
61
62#define MYSQL_COMMAND_SESSION_TRACK_BEGIN \
63 MYSQL_COMMAND_SESSION_TRACK_SYSTEM_VARIABLES
64#define MYSQL_COMMAND_SESSION_TRACK_END \
65 MYSQL_COMMAND_SESSION_TRACK_TRANSACTION_STATE
66
67#endif /* COMPONENTS_SERVICES_BITS_MYSQL_COMMAND_SESSION_STATE_BITS_H */
int mysql_command_session_state_type
Definition: mysql_command_session_state_bits.h:29
mysql_command_session_state_status
Status codes returned by mysql_command_session_state service methods.
Definition: mysql_command_session_state_bits.h:34
@ MYSQL_COMMAND_SESSION_STATE_END
Definition: mysql_command_session_state_bits.h:39
@ MYSQL_COMMAND_SESSION_STATE_INVALID
Definition: mysql_command_session_state_bits.h:42
@ MYSQL_COMMAND_SESSION_STATE_OK
Definition: mysql_command_session_state_bits.h:36
@ MYSQL_COMMAND_SESSION_STATE_BUFFER_TOO_SMALL
Definition: mysql_command_session_state_bits.h:45
@ MYSQL_COMMAND_SESSION_STATE_ERROR
Definition: mysql_command_session_state_bits.h:48