MySQL 8.4.0
Source Code Documentation
enum_query_type.h
Go to the documentation of this file.
1/* Copyright (c) 2015, 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 ENUM_QUERY_TYPE_INCLUDED
25#define ENUM_QUERY_TYPE_INCLUDED
26
27/**
28 Query type constants (usable as bitmap flags).
29*/
30
32 /// Nothing specific, ordinary SQL query.
34
35 /// In utf8.
37
38 /// Without character set introducers.
40
41 /**
42 Causes string literals to always be printed with character set
43 introducers. Takes precedence over QT_WITHOUT_INTRODUCERS.
44 */
46
47 /// When printing a SELECT, add its number (query_block->number).
49
50 /// Don't print a database if it's equal to the connection's database.
51 QT_NO_DEFAULT_DB = (1 << 4),
52
53 /// When printing a derived table, don't print its expression, only alias.
55
56 /// Print in charset of Item::print() argument (typically thd->charset()).
58
59 /// Print identifiers without database's name.
60 QT_NO_DB = (1 << 7),
61
62 /// Print identifiers without table's name.
63 QT_NO_TABLE = (1 << 8),
64
65 /**
66 Change all Item_basic_constant to ? (used by query rewrite to compute
67 digest.) Un-resolved hints will also be printed in this format.
68 */
70
71 /**
72 If an expression is constant, print the expression, not the value
73 it evaluates to. Should be used for error messages, so that they
74 don't reveal values.
75 */
77
78 /**
79 Don't print the QB name. Used for the INSERT part of an INSERT...SELECT.
80 */
81 QT_IGNORE_QB_NAME = (1 << 11),
82
83 /**
84 Print only the QB name. Used for the SELECT part of an INSERT...SELECT.
85 */
86 QT_ONLY_QB_NAME = (1 << 12),
87
88 /**
89 When printing subselects, print only the select number
90 (like QT_SHOW_SELECT_NUMBER), not the actual subselect text.
91 */
93
94 /**
95 Suppress the internal rollup functions used for switching items to NULL
96 or between different sums; these are different from most other internal
97 Items we insert, since they are inserted during resolving and not
98 optimization. Used when getting the canonical representation of a view.
99 */
100 QT_HIDE_ROLLUP_FUNCTIONS = (1 << 14)
101
103
104#endif // ENUM_QUERY_TYPE_INCLUDED
enum_query_type
Query type constants (usable as bitmap flags).
Definition: enum_query_type.h:31
@ QT_SUBSELECT_AS_ONLY_SELECT_NUMBER
When printing subselects, print only the select number (like QT_SHOW_SELECT_NUMBER),...
Definition: enum_query_type.h:92
@ QT_NO_DATA_EXPANSION
If an expression is constant, print the expression, not the value it evaluates to.
Definition: enum_query_type.h:76
@ QT_IGNORE_QB_NAME
Don't print the QB name.
Definition: enum_query_type.h:81
@ QT_DERIVED_TABLE_ONLY_ALIAS
When printing a derived table, don't print its expression, only alias.
Definition: enum_query_type.h:54
@ QT_NO_TABLE
Print identifiers without table's name.
Definition: enum_query_type.h:63
@ QT_TO_ARGUMENT_CHARSET
Print in charset of Item::print() argument (typically thd->charset()).
Definition: enum_query_type.h:57
@ QT_TO_SYSTEM_CHARSET
In utf8.
Definition: enum_query_type.h:36
@ QT_FORCE_INTRODUCERS
Causes string literals to always be printed with character set introducers.
Definition: enum_query_type.h:45
@ QT_NO_DB
Print identifiers without database's name.
Definition: enum_query_type.h:60
@ QT_ORDINARY
Nothing specific, ordinary SQL query.
Definition: enum_query_type.h:33
@ QT_NO_DEFAULT_DB
Don't print a database if it's equal to the connection's database.
Definition: enum_query_type.h:51
@ QT_NORMALIZED_FORMAT
Change all Item_basic_constant to ? (used by query rewrite to compute digest.) Un-resolved hints will...
Definition: enum_query_type.h:69
@ QT_SHOW_SELECT_NUMBER
When printing a SELECT, add its number (query_block->number).
Definition: enum_query_type.h:48
@ QT_WITHOUT_INTRODUCERS
Without character set introducers.
Definition: enum_query_type.h:39
@ QT_HIDE_ROLLUP_FUNCTIONS
Suppress the internal rollup functions used for switching items to NULL or between different sums; th...
Definition: enum_query_type.h:100
@ QT_ONLY_QB_NAME
Print only the QB name.
Definition: enum_query_type.h:86