MySQL  8.0.19
Source Code Documentation
field_types.h
Go to the documentation of this file.
1 /* Copyright (c) 2014, 2019, 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 field_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 FIELD_TYPES_INCLUDED
39 #define FIELD_TYPES_INCLUDED
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif /* __cplusplus */
44 
45 /*
46  * Constants exported from this package.
47  */
48 
49 /**
50  Column types for MySQL
51 */
53 #if defined(__cplusplus) && __cplusplus > 201103L
54  // N2764: Forward enum declarations, added in C++11
55  : int
56 #endif /* __cplusplus */
71  MYSQL_TYPE_NEWDATE, /**< Internal to MySQL. Not used in protocol */
75  MYSQL_TYPE_DATETIME2, /**< Internal to MySQL. Not used in protocol */
76  MYSQL_TYPE_TIME2, /**< Internal to MySQL. Not used in protocol */
77  MYSQL_TYPE_TYPED_ARRAY, /**< Used for replication only */
89 
90 #ifdef __cplusplus
91 } // extern "C"
92 #else
94 #endif /* __cplusplus */
95 
96 #endif /* FIELD_TYPES_INCLUDED */
MYSQL_TYPE_TIMESTAMP2
@ MYSQL_TYPE_TIMESTAMP2
Definition: field_types.h:74
MYSQL_TYPE_GEOMETRY
@ MYSQL_TYPE_GEOMETRY
Definition: field_types.h:88
MYSQL_TYPE_TINY_BLOB
@ MYSQL_TYPE_TINY_BLOB
Definition: field_types.h:82
MYSQL_TYPE_LONG_BLOB
@ MYSQL_TYPE_LONG_BLOB
Definition: field_types.h:84
MYSQL_TYPE_VARCHAR
@ MYSQL_TYPE_VARCHAR
Definition: field_types.h:72
MYSQL_TYPE_FLOAT
@ MYSQL_TYPE_FLOAT
Definition: field_types.h:61
MYSQL_TYPE_DATETIME
@ MYSQL_TYPE_DATETIME
Definition: field_types.h:69
MYSQL_TYPE_LONG
@ MYSQL_TYPE_LONG
Definition: field_types.h:60
MYSQL_TYPE_BIT
@ MYSQL_TYPE_BIT
Definition: field_types.h:73
MYSQL_TYPE_STRING
@ MYSQL_TYPE_STRING
Definition: field_types.h:87
MYSQL_TYPE_INT24
@ MYSQL_TYPE_INT24
Definition: field_types.h:66
MYSQL_TYPE_NULL
@ MYSQL_TYPE_NULL
Definition: field_types.h:63
MYSQL_TYPE_NEWDECIMAL
@ MYSQL_TYPE_NEWDECIMAL
Definition: field_types.h:79
MYSQL_TYPE_BLOB
@ MYSQL_TYPE_BLOB
Definition: field_types.h:85
MYSQL_TYPE_SHORT
@ MYSQL_TYPE_SHORT
Definition: field_types.h:59
MYSQL_TYPE_TIME
@ MYSQL_TYPE_TIME
Definition: field_types.h:68
MYSQL_TYPE_DATETIME2
@ MYSQL_TYPE_DATETIME2
Internal to MySQL.
Definition: field_types.h:75
MYSQL_TYPE_DATE
@ MYSQL_TYPE_DATE
Definition: field_types.h:67
enum_field_types
enum_field_types
Column types for MySQL.
Definition: field_types.h:52
MYSQL_TYPE_SET
@ MYSQL_TYPE_SET
Definition: field_types.h:81
MYSQL_TYPE_YEAR
@ MYSQL_TYPE_YEAR
Definition: field_types.h:70
MYSQL_TYPE_TIMESTAMP
@ MYSQL_TYPE_TIMESTAMP
Definition: field_types.h:64
MYSQL_TYPE_TINY
@ MYSQL_TYPE_TINY
Definition: field_types.h:58
MYSQL_TYPE_ENUM
@ MYSQL_TYPE_ENUM
Definition: field_types.h:80
MYSQL_TYPE_DOUBLE
@ MYSQL_TYPE_DOUBLE
Definition: field_types.h:62
MYSQL_TYPE_TYPED_ARRAY
@ MYSQL_TYPE_TYPED_ARRAY
Used for replication only.
Definition: field_types.h:77
MYSQL_TYPE_DECIMAL
@ MYSQL_TYPE_DECIMAL
Definition: field_types.h:57
MYSQL_TYPE_MEDIUM_BLOB
@ MYSQL_TYPE_MEDIUM_BLOB
Definition: field_types.h:83
MYSQL_TYPE_VAR_STRING
@ MYSQL_TYPE_VAR_STRING
Definition: field_types.h:86
MYSQL_TYPE_LONGLONG
@ MYSQL_TYPE_LONGLONG
Definition: field_types.h:65
MYSQL_TYPE_JSON
@ MYSQL_TYPE_JSON
Definition: field_types.h:78
MYSQL_TYPE_TIME2
@ MYSQL_TYPE_TIME2
Internal to MySQL.
Definition: field_types.h:76
MYSQL_TYPE_NEWDATE
@ MYSQL_TYPE_NEWDATE
Internal to MySQL.
Definition: field_types.h:71