MySQL 9.0.0
Source Code Documentation
enum_query_type.h File Reference

Go to the source code of this file.

Enumerations

enum  enum_query_type {
  QT_ORDINARY = 0 , QT_TO_SYSTEM_CHARSET = (1 << 0) , QT_WITHOUT_INTRODUCERS = (1 << 1) , QT_FORCE_INTRODUCERS = (1 << 2) ,
  QT_SHOW_SELECT_NUMBER = (1 << 3) , QT_NO_DEFAULT_DB = (1 << 4) , QT_DERIVED_TABLE_ONLY_ALIAS = (1 << 5) , QT_TO_ARGUMENT_CHARSET = (1 << 6) ,
  QT_NO_DB = (1 << 7) , QT_NO_TABLE = (1 << 8) , QT_NORMALIZED_FORMAT = (1 << 9) , QT_NO_DATA_EXPANSION = (1 << 10) ,
  QT_IGNORE_QB_NAME = (1 << 11) , QT_ONLY_QB_NAME = (1 << 12) , QT_SUBSELECT_AS_ONLY_SELECT_NUMBER = (1 << 13) , QT_HIDE_ROLLUP_FUNCTIONS = (1 << 14)
}
 Query type constants (usable as bitmap flags). More...
 

Enumeration Type Documentation

◆ enum_query_type

Query type constants (usable as bitmap flags).

Enumerator
QT_ORDINARY 

Nothing specific, ordinary SQL query.

QT_TO_SYSTEM_CHARSET 

In utf8.

QT_WITHOUT_INTRODUCERS 

Without character set introducers.

QT_FORCE_INTRODUCERS 

Causes string literals to always be printed with character set introducers.

Takes precedence over QT_WITHOUT_INTRODUCERS.

QT_SHOW_SELECT_NUMBER 

When printing a SELECT, add its number (query_block->number).

QT_NO_DEFAULT_DB 

Don't print a database if it's equal to the connection's database.

QT_DERIVED_TABLE_ONLY_ALIAS 

When printing a derived table, don't print its expression, only alias.

QT_TO_ARGUMENT_CHARSET 

Print in charset of Item::print() argument (typically thd->charset()).

QT_NO_DB 

Print identifiers without database's name.

QT_NO_TABLE 

Print identifiers without table's name.

QT_NORMALIZED_FORMAT 

Change all Item_basic_constant to ? (used by query rewrite to compute digest.) Un-resolved hints will also be printed in this format.

QT_NO_DATA_EXPANSION 

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_IGNORE_QB_NAME 

Don't print the QB name.

Used for the INSERT part of an INSERT...SELECT.

QT_ONLY_QB_NAME 

Print only the QB name.

Used for the SELECT part of an INSERT...SELECT.

QT_SUBSELECT_AS_ONLY_SELECT_NUMBER 

When printing subselects, print only the select number (like QT_SHOW_SELECT_NUMBER), not the actual subselect text.

QT_HIDE_ROLLUP_FUNCTIONS 

Suppress the internal rollup functions used for switching items to NULL or between different sums; these are different from most other internal Items we insert, since they are inserted during resolving and not optimization.

Used when getting the canonical representation of a view.