24#ifndef SQL_TEST_INCLUDED
25#define SQL_TEST_INCLUDED
48 double current_read_time,
const char *info);
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:936
Definition: sql_optimizer.h:133
A per-session context which is always available at any point of execution, because in practice it's a...
Definition: opt_trace_context.h:93
This class represents a query block, aka a query specification, which is a query consisting of a SELE...
Definition: sql_lex.h:1163
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
Query_block * query_block
Definition: table.h:3711
enum_query_type
Query type constants (usable as bitmap flags).
Definition: enum_query_type.h:31
std::string join(const detail::range auto &rng, std::string_view delim)
join elements of a range into a string separated by a delimiter.
Definition: string.h:74
void print_where(const THD *thd, const Item *cond, const char *info, enum_query_type query_type)
Definition: sql_test.cc:96
Mem_root_array< Key_use > Key_use_array
Definition: sql_test.h:37
const char * lock_descriptions[TL_WRITE_ONLY+1]
Definition: sql_test.cc:79
void TEST_join(JOIN *join)
Definition: sql_test.cc:111
void dump_TABLE_LIST_graph(Query_block *query_block, Table_ref *tl)
void print_plan(JOIN *join, uint idx, double record_count, double read_time, double current_read_time, const char *info)
Print the current state during query optimization.
Definition: sql_test.cc:216
void print_keyuse_array(THD *thd, Opt_trace_context *trace, const Key_use_array *keyuse_array)
Definition: sql_test.cc:162
@ TL_WRITE_ONLY
Definition: thr_lock.h:94