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, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is also distributed with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have included with MySQL.
13
14 Without limiting anything contained in the foregoing, this file,
15 which is part of C Driver for MySQL (Connector/C), is also subject to the
16 Universal FOSS Exception, version 1.0, a copy of which can be found at
17 http://oss.oracle.com/licenses/universal-foss-exception.
18
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU General Public License, version 2.0, for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to the Free Software
26 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
27
28/**
29 @file binary_log_types.h
30
31 @brief This file contains the field type.
32
33
34 @note This file can be imported both from C and C++ code, so the
35 definitions have to be constructed to support this.
36*/
37
38#ifndef BINARY_LOG_TYPES_INCLUDED
39#define BINARY_LOG_TYPES_INCLUDED
40
41#ifdef __cplusplus
42extern "C"
43{
44#endif
45
46/*
47 * Constants exported from this package.
48 */
49
50typedef enum enum_field_types {
51 MYSQL_TYPE_DECIMAL, MYSQL_TYPE_TINY,
52 MYSQL_TYPE_SHORT, MYSQL_TYPE_LONG,
53 MYSQL_TYPE_FLOAT, MYSQL_TYPE_DOUBLE,
54 MYSQL_TYPE_NULL, MYSQL_TYPE_TIMESTAMP,
55 MYSQL_TYPE_LONGLONG,MYSQL_TYPE_INT24,
56 MYSQL_TYPE_DATE, MYSQL_TYPE_TIME,
57 MYSQL_TYPE_DATETIME, MYSQL_TYPE_YEAR,
58 MYSQL_TYPE_NEWDATE, MYSQL_TYPE_VARCHAR,
59 MYSQL_TYPE_BIT,
60 MYSQL_TYPE_TIMESTAMP2,
61 MYSQL_TYPE_DATETIME2,
62 MYSQL_TYPE_TIME2,
63 MYSQL_TYPE_JSON=245,
64 MYSQL_TYPE_NEWDECIMAL=246,
65 MYSQL_TYPE_ENUM=247,
66 MYSQL_TYPE_SET=248,
67 MYSQL_TYPE_TINY_BLOB=249,
68 MYSQL_TYPE_MEDIUM_BLOB=250,
69 MYSQL_TYPE_LONG_BLOB=251,
70 MYSQL_TYPE_BLOB=252,
71 MYSQL_TYPE_VAR_STRING=253,
72 MYSQL_TYPE_STRING=254,
73 MYSQL_TYPE_GEOMETRY=255
74} enum_field_types;
75
76#define DATETIME_MAX_DECIMALS 6
77
78#ifdef __cplusplus
79}
80#endif // __cplusplus
81
82#endif /* BINARY_LOG_TYPES_INCLUDED */
83