1 /* Copyright (c) 2014, 2015 Oracle and/or its affiliates. All rights reserved.
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.
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.
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 */
17 @file binary_log_types.h
19 @brief This file contains the field type.
22 @note This file can be imported both from C and C++ code, so the
23 definitions have to be constructed to support this.
26 #ifndef BINARY_LOG_TYPES_INCLUDED
27 #define BINARY_LOG_TYPES_INCLUDED
35 * Constants exported from this package.
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,
48 MYSQL_TYPE_TIMESTAMP2,
52 MYSQL_TYPE_NEWDECIMAL=246,
55 MYSQL_TYPE_TINY_BLOB=249,
56 MYSQL_TYPE_MEDIUM_BLOB=250,
57 MYSQL_TYPE_LONG_BLOB=251,
59 MYSQL_TYPE_VAR_STRING=253,
60 MYSQL_TYPE_STRING=254,
61 MYSQL_TYPE_GEOMETRY=255
64 #define DATETIME_MAX_DECIMALS 6
70 #endif /* BINARY_LOG_TYPES_INCLUDED */