MySQL
8.3.0
Source Code Documentation
mysql_protocol_common.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2017, 2023, 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 also distributed 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 included with MySQL.
14
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software
22
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23
*/
24
25
#ifndef MYSQLD_MOCK_MYSQL_PROTOCOL_COMMON_INCLUDED
26
#define MYSQLD_MOCK_MYSQL_PROTOCOL_COMMON_INCLUDED
27
28
#include <string>
29
30
namespace
server_mock
{
31
32
/** @enum MySQLColumnType
33
*
34
* Supported MySQL Coumn types.
35
*
36
**/
37
enum class
MySQLColumnType
{
38
DECIMAL
= 0x00,
39
TINY
= 0x01,
40
SHORT
= 0x02,
41
LONG
= 0x03,
42
FLOAT
= 0x04,
43
DOUBLE
= 0x05,
44
NULL_
= 0x06,
45
TIMESTAMP
= 0x07,
46
LONGLONG
= 0x08,
47
INT24
= 0x09,
48
DATE
= 0x0a,
49
TIME
= 0x0b,
50
DATETIME
= 0x0c,
51
YEAR
= 0x0d,
52
NEWDATE
= 0x0e,
53
VARCHAR
= 0x0f,
54
BIT
= 0x10,
55
TIMESTAMP2
= 0x11,
56
JSON
= 0xf5,
57
NEWDECIMAL
= 0xf6,
58
ENUM
= 0xf7,
59
SET
= 0xf8,
60
TINY_BLOB
= 0xf9,
61
MEDIUM_BLOB
= 0xfa,
62
LONG_BLOB
= 0xfb,
63
BLOB
= 0xfc,
64
VAR_STRING
= 0xfd,
65
STRING
= 0xfe,
66
GEOMETRY
= 0xff
67
};
68
69
}
// namespace server_mock
70
71
#endif
// MYSQLD_MOCK_MYSQL_PROTOCOL_COMMON_INCLUDED
server_mock
Definition:
mock_server_component.h:35
server_mock::MySQLColumnType
MySQLColumnType
Supported MySQL Coumn types.
Definition:
mysql_protocol_common.h:37
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