OSDN Git Service

First version
[st-ro/stro.git] / 3rdparty / mysql / include / binary_log_types.h
1 /* Copyright (c) 2014, 2015 Oracle and/or its affiliates. All rights reserved.
2
3    This program is free software; you can redistribute it and/or modify
4    it under the terms of the GNU General Public License as published by
5    the Free Software Foundation; version 2 of the License.
6
7    This program is distributed in the hope that it will be useful,
8    but WITHOUT ANY WARRANTY; without even the implied warranty of
9    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10    GNU General Public License for more details.
11
12    You should have received a copy of the GNU General Public License
13    along with this program; if not, write to the Free Software
14    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA */
15
16 /**
17   @file binary_log_types.h
18
19   @brief This file contains the field type.
20
21
22   @note This file can be imported both from C and C++ code, so the
23   definitions have to be constructed to support this.
24 */
25
26 #ifndef BINARY_LOG_TYPES_INCLUDED
27 #define BINARY_LOG_TYPES_INCLUDED
28
29 #ifdef __cplusplus
30 extern "C"
31 {
32 #endif
33
34 /*
35  * Constants exported from this package.
36  */
37
38 typedef enum enum_field_types {
39   MYSQL_TYPE_DECIMAL, MYSQL_TYPE_TINY,
40   MYSQL_TYPE_SHORT,  MYSQL_TYPE_LONG,
41   MYSQL_TYPE_FLOAT,  MYSQL_TYPE_DOUBLE,
42   MYSQL_TYPE_NULL,   MYSQL_TYPE_TIMESTAMP,
43   MYSQL_TYPE_LONGLONG,MYSQL_TYPE_INT24,
44   MYSQL_TYPE_DATE,   MYSQL_TYPE_TIME,
45   MYSQL_TYPE_DATETIME, MYSQL_TYPE_YEAR,
46   MYSQL_TYPE_NEWDATE, MYSQL_TYPE_VARCHAR,
47   MYSQL_TYPE_BIT,
48   MYSQL_TYPE_TIMESTAMP2,
49   MYSQL_TYPE_DATETIME2,
50   MYSQL_TYPE_TIME2,
51   MYSQL_TYPE_JSON=245,
52   MYSQL_TYPE_NEWDECIMAL=246,
53   MYSQL_TYPE_ENUM=247,
54   MYSQL_TYPE_SET=248,
55   MYSQL_TYPE_TINY_BLOB=249,
56   MYSQL_TYPE_MEDIUM_BLOB=250,
57   MYSQL_TYPE_LONG_BLOB=251,
58   MYSQL_TYPE_BLOB=252,
59   MYSQL_TYPE_VAR_STRING=253,
60   MYSQL_TYPE_STRING=254,
61   MYSQL_TYPE_GEOMETRY=255
62 } enum_field_types;
63
64 #define DATETIME_MAX_DECIMALS 6
65
66 #ifdef __cplusplus
67 }
68 #endif // __cplusplus
69
70 #endif /* BINARY_LOG_TYPES_INCLUDED */