MySQL  8.0.19
Source Code Documentation
enum_query_type.h
Go to the documentation of this file.
1 /* Copyright (c) 2015, 2018, 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  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License, version 2.0, for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22 
23 #ifndef ENUM_QUERY_TYPE_INCLUDED
24 #define ENUM_QUERY_TYPE_INCLUDED
25 
26 /**
27  Query type constants (usable as bitmap flags).
28 */
29 
31  /// Nothing specific, ordinary SQL query.
33 
34  /// In utf8.
36 
37  /// Without character set introducers.
39 
40  /**
41  Causes string literals to always be printed with character set
42  introducers. Takes precedence over QT_WITHOUT_INTRODUCERS.
43  */
45 
46  /// When printing a SELECT, add its number (select_lex->number).
48 
49  /// Don't print a database if it's equal to the connection's database.
50  QT_NO_DEFAULT_DB = (1 << 4),
51 
52  /// When printing a derived table, don't print its expression, only alias.
54 
55  /// Print in charset of Item::print() argument (typically thd->charset()).
57 
58  /// Print identifiers without database's name.
59  QT_NO_DB = (1 << 7),
60 
61  /// Print identifiers without table's name.
62  QT_NO_TABLE = (1 << 8),
63 
64  /**
65  Change all Item_basic_constant to ? (used by query rewrite to compute
66  digest.) Un-resolved hints will also be printed in this format.
67  */
69 
70  /**
71  If an expression is constant, print the expression, not the value
72  it evaluates to. Should be used for error messages, so that they
73  don't reveal values.
74  */
75  QT_NO_DATA_EXPANSION = (1 << 10),
76 
77  /**
78  Don't print the QB name. Used for the INSERT part of an INSERT...SELECT.
79  */
80  QT_IGNORE_QB_NAME = (1 << 11),
81 
82  /**
83  Print only the QB name. Used for the SELECT part of an INSERT...SELECT.
84  */
85  QT_ONLY_QB_NAME = (1 << 12),
86 
87  /**
88  When printing subselects, print only the select number
89  (like QT_SHOW_SELECT_NUMBER), not the actual subselect text.
90  */
92 
93 };
94 
95 #endif // ENUM_QUERY_TYPE_INCLUDED
QT_NO_DATA_EXPANSION
@ QT_NO_DATA_EXPANSION
If an expression is constant, print the expression, not the value it evaluates to.
Definition: enum_query_type.h:75
QT_SHOW_SELECT_NUMBER
@ QT_SHOW_SELECT_NUMBER
When printing a SELECT, add its number (select_lex->number).
Definition: enum_query_type.h:47
QT_WITHOUT_INTRODUCERS
@ QT_WITHOUT_INTRODUCERS
Without character set introducers.
Definition: enum_query_type.h:38
QT_NO_TABLE
@ QT_NO_TABLE
Print identifiers without table's name.
Definition: enum_query_type.h:62
QT_ONLY_QB_NAME
@ QT_ONLY_QB_NAME
Print only the QB name.
Definition: enum_query_type.h:85
QT_TO_SYSTEM_CHARSET
@ QT_TO_SYSTEM_CHARSET
In utf8.
Definition: enum_query_type.h:35
QT_SUBSELECT_AS_ONLY_SELECT_NUMBER
@ QT_SUBSELECT_AS_ONLY_SELECT_NUMBER
When printing subselects, print only the select number (like QT_SHOW_SELECT_NUMBER),...
Definition: enum_query_type.h:91
QT_TO_ARGUMENT_CHARSET
@ QT_TO_ARGUMENT_CHARSET
Print in charset of Item::print() argument (typically thd->charset()).
Definition: enum_query_type.h:56
enum_query_type
enum_query_type
Query type constants (usable as bitmap flags).
Definition: enum_query_type.h:30
QT_DERIVED_TABLE_ONLY_ALIAS
@ QT_DERIVED_TABLE_ONLY_ALIAS
When printing a derived table, don't print its expression, only alias.
Definition: enum_query_type.h:53
QT_FORCE_INTRODUCERS
@ QT_FORCE_INTRODUCERS
Causes string literals to always be printed with character set introducers.
Definition: enum_query_type.h:44
QT_ORDINARY
@ QT_ORDINARY
Nothing specific, ordinary SQL query.
Definition: enum_query_type.h:32
QT_NO_DEFAULT_DB
@ QT_NO_DEFAULT_DB
Don't print a database if it's equal to the connection's database.
Definition: enum_query_type.h:50
QT_IGNORE_QB_NAME
@ QT_IGNORE_QB_NAME
Don't print the QB name.
Definition: enum_query_type.h:80
QT_NO_DB
@ QT_NO_DB
Print identifiers without database's name.
Definition: enum_query_type.h:59
QT_NORMALIZED_FORMAT
@ 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:68