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:
@@ -1672,7 +1672,7 @@ bool Multiupdate_prelocking_strategy::handle_end(THD *thd)
|
||||
|
||||
if (setup_tables_and_check_access(thd, &select_lex->context,
|
||||
&select_lex->top_join_list, table_list, select_lex->leaf_tables,
|
||||
FALSE, UPDATE_ACL, SELECT_ACL, TRUE))
|
||||
false, UPDATE_ACL, SELECT_ACL, true, false))
|
||||
DBUG_RETURN(1);
|
||||
|
||||
if (table_list->has_period() &&
|
||||
@@ -3118,7 +3118,7 @@ bool Sql_cmd_update::prepare_inner(THD *thd)
|
||||
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 (select_lex->vers_setup_conds(thd, table_list))
|
||||
|
Reference in New Issue
Block a user