mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge 10.4 to 10.5
This commit is contained in:
@ -439,11 +439,14 @@ bool handle_select(THD *thd, LEX *lex, select_result *result,
|
||||
If LIMIT ROWS EXAMINED interrupted query execution, issue a warning,
|
||||
continue with normal processing and produce an incomplete query result.
|
||||
*/
|
||||
bool saved_abort_on_warning= thd->abort_on_warning;
|
||||
thd->abort_on_warning= false;
|
||||
push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN,
|
||||
ER_QUERY_EXCEEDED_ROWS_EXAMINED_LIMIT,
|
||||
ER_THD(thd, ER_QUERY_EXCEEDED_ROWS_EXAMINED_LIMIT),
|
||||
thd->accessed_rows_and_keys,
|
||||
thd->lex->limit_rows_examined->val_uint());
|
||||
thd->abort_on_warning= saved_abort_on_warning;
|
||||
thd->reset_killed();
|
||||
}
|
||||
/* Disable LIMIT ROWS EXAMINED after query execution. */
|
||||
@ -743,7 +746,7 @@ bool vers_select_conds_t::init_from_sysvar(THD *thd)
|
||||
|
||||
void vers_select_conds_t::print(String *str, enum_query_type query_type) const
|
||||
{
|
||||
switch (type) {
|
||||
switch (orig_type) {
|
||||
case SYSTEM_TIME_UNSPECIFIED:
|
||||
break;
|
||||
case SYSTEM_TIME_AS_OF:
|
||||
@ -991,6 +994,7 @@ int SELECT_LEX::vers_setup_conds(THD *thd, TABLE_LIST *tables)
|
||||
case SQLCOM_SELECT:
|
||||
use_sysvar= true;
|
||||
/* fall through */
|
||||
case SQLCOM_CREATE_TABLE:
|
||||
case SQLCOM_INSERT_SELECT:
|
||||
case SQLCOM_REPLACE_SELECT:
|
||||
case SQLCOM_DELETE_MULTI:
|
||||
|
Reference in New Issue
Block a user