MySQL 8.0.40
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
31namespace server_mock {
32
33/** @enum MySQLColumnType
34 *
35 * Supported MySQL Coumn types.
36 *
37 **/
38enum 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
Definition: mock_server_component.h:36
MySQLColumnType
Supported MySQL Coumn types.
Definition: mysql_protocol_common.h:38