MySQL
8.4.2
Source Code Documentation
stored_program_bits.h
Go to the documentation of this file.
1
/* Copyright (c) 2022, 2024, 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_STORED_PROGRAM_BITS_H
25
#define COMPONENTS_SERVICES_STORED_PROGRAM_BITS_H
26
27
// 1-to-1 mapping with include/field_types.h
28
#define MYSQL_SP_ARG_TYPE_DECIMAL (1ULL << 0)
29
#define MYSQL_SP_ARG_TYPE_TINY (1ULL << 1)
30
#define MYSQL_SP_ARG_TYPE_SHORT (1ULL << 2)
31
#define MYSQL_SP_ARG_TYPE_LONG (1ULL << 3)
32
#define MYSQL_SP_ARG_TYPE_FLOAT (1ULL << 4)
33
#define MYSQL_SP_ARG_TYPE_DOUBLE (1ULL << 5)
34
#define MYSQL_SP_ARG_TYPE_NULL (1ULL << 6)
35
#define MYSQL_SP_ARG_TYPE_TIMESTAMP (1ULL << 7)
36
#define MYSQL_SP_ARG_TYPE_LONGLONG (1ULL << 8)
37
#define MYSQL_SP_ARG_TYPE_INT24 (1ULL << 9)
38
#define MYSQL_SP_ARG_TYPE_DATE (1ULL << 10)
39
#define MYSQL_SP_ARG_TYPE_TIME (1ULL << 11)
40
#define MYSQL_SP_ARG_TYPE_DATETIME (1ULL << 12)
41
#define MYSQL_SP_ARG_TYPE_YEAR (1ULL << 13)
42
#define MYSQL_SP_ARG_TYPE_NEWDATE (1ULL << 14)
43
#define MYSQL_SP_ARG_TYPE_VARCHAR (1ULL << 15)
44
#define MYSQL_SP_ARG_TYPE_BIT (1ULL << 16)
45
#define MYSQL_SP_ARG_TYPE_TIMESTAMP2 (1ULL << 17)
46
#define MYSQL_SP_ARG_TYPE_DATETIME2 (1ULL << 18)
47
#define MYSQL_SP_ARG_TYPE_TIME2 (1ULL << 19)
48
#define MYSQL_SP_ARG_TYPE_TYPED_ARRAY (1ULL << 20)
49
#define MYSQL_SP_ARG_TYPE_INVALID (1ULL << 21)
50
#define MYSQL_SP_ARG_TYPE_BOOL (1ULL << 22)
51
#define MYSQL_SP_ARG_TYPE_JSON (1ULL << 23)
52
#define MYSQL_SP_ARG_TYPE_NEWDECIMAL (1ULL << 24)
53
#define MYSQL_SP_ARG_TYPE_ENUM (1ULL << 25)
54
#define MYSQL_SP_ARG_TYPE_SET (1ULL << 26)
55
#define MYSQL_SP_ARG_TYPE_TINY_BLOB (1ULL << 27)
56
#define MYSQL_SP_ARG_TYPE_MEDIUM_BLOB (1ULL << 28)
57
#define MYSQL_SP_ARG_TYPE_LONG_BLOB (1ULL << 29)
58
#define MYSQL_SP_ARG_TYPE_BLOB (1ULL << 30)
59
#define MYSQL_SP_ARG_TYPE_VAR_STRING (1ULL << 31)
60
#define MYSQL_SP_ARG_TYPE_STRING (1ULL << 32)
61
#define MYSQL_SP_ARG_TYPE_GEOMETRY (1ULL << 33)
62
63
#endif
include
mysql
components
services
bits
stored_program_bits.h
Generated by
1.9.2