24#ifndef SQL_DELETE_INCLUDED
25#define SQL_DELETE_INCLUDED
Definition: sql_optimizer.h:133
Simple intrusive linked list.
Definition: sql_list.h:48
Abstract base class for traversing the Query_block tree.
Definition: select_lex_visitor.h:40
Definition: sql_delete.h:38
SQL_I_List< Table_ref > * delete_tables
References to tables that are deleted from in a multitable delete statement.
Definition: sql_delete.h:68
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_delete.h:43
bool execute_inner(THD *thd) override
Execute a DELETE statement.
Definition: sql_delete.cc:900
Sql_cmd_delete(bool multitable_arg, SQL_I_List< Table_ref > *delete_tables_arg)
Definition: sql_delete.h:40
bool prepare_inner(THD *thd) override
Prepare a DELETE statement.
Definition: sql_delete.cc:692
bool delete_from_single_table(THD *thd)
Delete a set of rows from a single table.
Definition: sql_delete.cc:204
bool precheck(THD *thd) override
Perform a precheck of table privileges for the specific operation.
Definition: sql_delete.cc:152
bool multitable
Definition: sql_delete.h:62
bool check_privileges(THD *thd) override
Check privileges on a prepared statement, called at start of execution of the statement.
Definition: sql_delete.cc:182
bool accept(THD *thd, Select_lex_visitor *visitor) override
Definition: sql_delete.cc:1266
bool is_single_table_plan() const override
Definition: sql_delete.h:47
Definition: sql_cmd_dml.h:35
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
enum_sql_command
Definition: my_sqlcommand.h:46
@ SQLCOM_DELETE
Definition: my_sqlcommand.h:54
@ SQLCOM_DELETE_MULTI
Definition: my_sqlcommand.h:121
uint64_t table_map
Definition: my_table_map.h:30
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
int delete_tables(PFS_engine_table_share_proxy **, unsigned int) noexcept
Definition: pfs_plugin_table_v1_all_empty.cc:39
bool CheckSqlSafeUpdate(THD *thd, const JOIN *join)
Checks if the sql_safe_updates option is enabled, and raises an error and returns true if the stateme...
Definition: sql_delete.cc:976
table_map GetImmediateDeleteTables(const JOIN *join, table_map delete_tables)
Find out which of the delete target tables can be deleted from immediately while scanning.
Definition: sql_delete.cc:1270