Merge branch '11.6' into 11.7
This commit is contained in:
commit
b12ff287ec
789 changed files with 10342 additions and 4415 deletions
|
@ -428,10 +428,10 @@ bool Sql_cmd_delete::delete_from_single_table(THD *thd)
|
|||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
|
||||
const_cond_result= const_cond && (!conds || conds->val_int());
|
||||
const_cond_result= const_cond && (!conds || conds->val_bool());
|
||||
if (unlikely(thd->is_error()))
|
||||
{
|
||||
/* Error evaluating val_int(). */
|
||||
/* Error evaluating val_bool(). */
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
|
||||
|
@ -534,6 +534,7 @@ bool Sql_cmd_delete::delete_from_single_table(THD *thd)
|
|||
{
|
||||
thd->lex->current_select->save_leaf_tables(thd);
|
||||
thd->lex->current_select->leaf_tables_saved= true;
|
||||
thd->lex->current_select->first_cond_optimization= 0;
|
||||
}
|
||||
|
||||
my_ok(thd, 0);
|
||||
|
@ -579,6 +580,7 @@ bool Sql_cmd_delete::delete_from_single_table(THD *thd)
|
|||
{
|
||||
thd->lex->current_select->save_leaf_tables(thd);
|
||||
thd->lex->current_select->leaf_tables_saved= true;
|
||||
thd->lex->current_select->first_cond_optimization= 0;
|
||||
}
|
||||
|
||||
my_ok(thd, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue