mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-34860 Implement MAX_EXECUTION_TIME hint
It places a limit N (a timeout value in milliseconds) on how long a statement is permitted to execute before the server terminates it. Syntax: SELECT /*+ MAX_EXECUTION_TIME(milliseconds) */ ... Only top-level SELECT statements support the hint.
This commit is contained in:
@@ -1880,11 +1880,11 @@ bool Sql_cmd_delete::prepare_inner(THD *thd)
|
||||
if (setup_tables_and_check_access(thd, &select_lex->context,
|
||||
&select_lex->top_join_list,
|
||||
table_list, select_lex->leaf_tables,
|
||||
false, DELETE_ACL, SELECT_ACL, true))
|
||||
false, DELETE_ACL, SELECT_ACL, true, false))
|
||||
DBUG_RETURN(TRUE);
|
||||
|
||||
if (setup_tables(thd, &select_lex->context, &select_lex->top_join_list,
|
||||
table_list, select_lex->leaf_tables, false, false))
|
||||
table_list, select_lex->leaf_tables, false, false, true))
|
||||
DBUG_RETURN(TRUE);
|
||||
|
||||
if (!multitable)
|
||||
|
Reference in New Issue
Block a user