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.
|