MySQL
26.7.0
Source Code Documentation
mysql_field_types_bits.h
Go to the documentation of this file.
1
/* Copyright (c) 2026, Oracle and/or its affiliates.
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 designed to work 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 either included with
13
the program or referenced in the documentation.
14
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License, version 2.0, for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software
22
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24
#ifndef COMPONENTS_SERVICES_BITS_MYSQL_FIELD_TYPES_BITS_H
25
#define COMPONENTS_SERVICES_BITS_MYSQL_FIELD_TYPES_BITS_H
26
27
#include <stdint.h>
28
29
typedef
uint32_t
mysql_field_type_t
;
30
31
/**
32
Mirror enum_field_types values from field_types.h to keep this header
33
independent from the client C API.
34
*/
35
#define MYSQL_FIELD_TYPE_DECIMAL 0
36
#define MYSQL_FIELD_TYPE_TINY 1
37
#define MYSQL_FIELD_TYPE_SHORT 2
38
#define MYSQL_FIELD_TYPE_LONG 3
39
#define MYSQL_FIELD_TYPE_FLOAT 4
40
#define MYSQL_FIELD_TYPE_DOUBLE 5
41
#define MYSQL_FIELD_TYPE_NULL 6
42
#define MYSQL_FIELD_TYPE_TIMESTAMP 7
43
#define MYSQL_FIELD_TYPE_LONGLONG 8
44
#define MYSQL_FIELD_TYPE_INT24 9
45
#define MYSQL_FIELD_TYPE_DATE 10
46
#define MYSQL_FIELD_TYPE_TIME 11
47
#define MYSQL_FIELD_TYPE_DATETIME 12
48
#define MYSQL_FIELD_TYPE_YEAR 13
49
#define MYSQL_FIELD_TYPE_NEWDATE 14
50
#define MYSQL_FIELD_TYPE_VARCHAR 15
51
#define MYSQL_FIELD_TYPE_BIT 16
52
#define MYSQL_FIELD_TYPE_TIMESTAMP2 17
53
#define MYSQL_FIELD_TYPE_DATETIME2 18
54
#define MYSQL_FIELD_TYPE_TIME2 19
55
#define MYSQL_FIELD_TYPE_TYPED_ARRAY 20
56
#define MYSQL_FIELD_TYPE_VECTOR 242
57
#define MYSQL_FIELD_TYPE_INVALID 243
58
#define MYSQL_FIELD_TYPE_BOOL 244
59
#define MYSQL_FIELD_TYPE_JSON 245
60
#define MYSQL_FIELD_TYPE_NEWDECIMAL 246
61
#define MYSQL_FIELD_TYPE_ENUM 247
62
#define MYSQL_FIELD_TYPE_SET 248
63
#define MYSQL_FIELD_TYPE_TINY_BLOB 249
64
#define MYSQL_FIELD_TYPE_MEDIUM_BLOB 250
65
#define MYSQL_FIELD_TYPE_LONG_BLOB 251
66
#define MYSQL_FIELD_TYPE_BLOB 252
67
#define MYSQL_FIELD_TYPE_VAR_STRING 253
68
#define MYSQL_FIELD_TYPE_STRING 254
69
#define MYSQL_FIELD_TYPE_GEOMETRY 255
70
71
#endif
/* COMPONENTS_SERVICES_BITS_MYSQL_FIELD_TYPES_BITS_H */
mysql_field_type_t
uint32_t mysql_field_type_t
Definition:
mysql_field_types_bits.h:29
include
mysql
components
services
bits
mysql_field_types_bits.h
Generated by
1.9.2