MySQL
9.1.0
Source Code Documentation
mysql_protocol_common.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2017, 2024, Oracle and/or its affiliates.
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License, version 2.0,
6
as published by the Free Software Foundation.
7
8
This program is designed to work with certain software (including
9
but not limited to OpenSSL) that is licensed under separate terms,
10
as designated in a particular file or component or in included license
11
documentation. The authors of MySQL hereby grant you an additional
12
permission to link the program and your derivative works with the
13
separately licensed software that they have either included with
14
the program or referenced in the documentation.
15
16
This program is distributed in the hope that it will be useful,
17
but WITHOUT ANY WARRANTY; without even the implied warranty of
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
GNU General Public License for more details.
20
21
You should have received a copy of the GNU General Public License
22
along with this program; if not, write to the Free Software
23
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24
*/
25
26
#ifndef MYSQLD_MOCK_MYSQL_PROTOCOL_COMMON_INCLUDED
27
#define MYSQLD_MOCK_MYSQL_PROTOCOL_COMMON_INCLUDED
28
29
#include <string>
30
31
namespace
server_mock
{
32
33
/** @enum MySQLColumnType
34
*
35
* Supported MySQL Coumn types.
36
*
37
**/
38
enum class
MySQLColumnType
{
39
DECIMAL
= 0x00,
40
TINY
= 0x01,
41
SHORT
= 0x02,
42
LONG
= 0x03,
43
FLOAT
= 0x04,
44
DOUBLE
= 0x05,
45
NULL_
= 0x06,
46
TIMESTAMP
= 0x07,
47
LONGLONG
= 0x08,
48
INT24
= 0x09,
49
DATE
= 0x0a,
50
TIME
= 0x0b,
51
DATETIME
= 0x0c,
52
YEAR
= 0x0d,
53
NEWDATE
= 0x0e,
54
VARCHAR
= 0x0f,
55
BIT
= 0x10,
56
TIMESTAMP2
= 0x11,
57
JSON
= 0xf5,
58
NEWDECIMAL
= 0xf6,
59
ENUM
= 0xf7,
60
SET
= 0xf8,
61
TINY_BLOB
= 0xf9,
62
MEDIUM_BLOB
= 0xfa,
63
LONG_BLOB
= 0xfb,
64
BLOB
= 0xfc,
65
VAR_STRING
= 0xfd,
66
STRING
= 0xfe,
67
GEOMETRY
= 0xff
68
};
69
70
}
// namespace server_mock
71
72
#endif
// MYSQLD_MOCK_MYSQL_PROTOCOL_COMMON_INCLUDED
server_mock
Definition:
mock_server_component.h:36
server_mock::MySQLColumnType
MySQLColumnType
Supported MySQL Coumn types.
Definition:
mysql_protocol_common.h:38
server_mock::MySQLColumnType::JSON
@ JSON
server_mock::MySQLColumnType::DECIMAL
@ DECIMAL
server_mock::MySQLColumnType::BLOB
@ BLOB
server_mock::MySQLColumnType::TIME
@ TIME
server_mock::MySQLColumnType::DATE
@ DATE
server_mock::MySQLColumnType::STRING
@ STRING
server_mock::MySQLColumnType::NULL_
@ NULL_
server_mock::MySQLColumnType::TINY
@ TINY
server_mock::MySQLColumnType::ENUM
@ ENUM
server_mock::MySQLColumnType::LONG_BLOB
@ LONG_BLOB
server_mock::MySQLColumnType::TIMESTAMP
@ TIMESTAMP
server_mock::MySQLColumnType::SET
@ SET
server_mock::MySQLColumnType::INT24
@ INT24
server_mock::MySQLColumnType::NEWDATE
@ NEWDATE
server_mock::MySQLColumnType::SHORT
@ SHORT
server_mock::MySQLColumnType::DATETIME
@ DATETIME
server_mock::MySQLColumnType::GEOMETRY
@ GEOMETRY
server_mock::MySQLColumnType::VAR_STRING
@ VAR_STRING
server_mock::MySQLColumnType::LONG
@ LONG
server_mock::MySQLColumnType::MEDIUM_BLOB
@ MEDIUM_BLOB
server_mock::MySQLColumnType::YEAR
@ YEAR
server_mock::MySQLColumnType::BIT
@ BIT
server_mock::MySQLColumnType::VARCHAR
@ VARCHAR
server_mock::MySQLColumnType::LONGLONG
@ LONGLONG
server_mock::MySQLColumnType::FLOAT
@ FLOAT
server_mock::MySQLColumnType::TIMESTAMP2
@ TIMESTAMP2
server_mock::MySQLColumnType::TINY_BLOB
@ TINY_BLOB
server_mock::MySQLColumnType::NEWDECIMAL
@ NEWDECIMAL
server_mock::MySQLColumnType::DOUBLE
@ DOUBLE
router
src
mock_server
src
mysql_protocol_common.h
Generated by
1.9.2