-
Notifications
You must be signed in to change notification settings - Fork 4k
/
Copy pathenum_query_type.h
73 lines (54 loc) · 2.23 KB
/
enum_query_type.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
#ifndef ENUM_QUERY_TYPE_INCLUDED
#define ENUM_QUERY_TYPE_INCLUDED
/**
Query type constants (usable as bitmap flags).
*/
enum enum_query_type
{
/// Nothing specific, ordinary SQL query.
QT_ORDINARY= 0,
/// In utf8.
QT_TO_SYSTEM_CHARSET= (1 << 0),
/// Without character set introducers.
QT_WITHOUT_INTRODUCERS= (1 << 1),
/**
Causes string literals to always be printed with character set
introducers. Takes precedence over QT_WITHOUT_INTRODUCERS.
*/
QT_FORCE_INTRODUCERS= (1 << 2),
/// When printing a SELECT, add its number (select_lex->number).
QT_SHOW_SELECT_NUMBER= (1 << 3),
/// Don't print a database if it's equal to the connection's database.
QT_NO_DEFAULT_DB= (1 << 4),
/// When printing a derived table, don't print its expression, only alias.
QT_DERIVED_TABLE_ONLY_ALIAS= (1 << 5),
/// Print in charset of Item::print() argument (typically thd->charset()).
QT_TO_ARGUMENT_CHARSET= (1 << 6),
/// Print identifiers without database's name.
QT_NO_DB= (1 << 7),
/// Print identifiers without table's name.
QT_NO_TABLE= (1 << 8),
/**
Change all Item_basic_constant to ? (used by query rewrite to compute
digest.) Un-resolved hints will also be printed in this format.
*/
QT_NORMALIZED_FORMAT= (1 << 9),
/**
If an expression is constant, print the expression, not the value
it evaluates to. Should be used for error messages, so that they
don't reveal values.
*/
QT_NO_DATA_EXPANSION= (1 << 10),
};
#endif // ENUM_QUERY_TYPE_INCLUDED