mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-32656: ASAN errors in base_list_iterator::next / setup_table_map upon 2nd execution of PS
Correctly supress error issuing when saving value in field for comporison
This commit is contained in:
@ -7723,11 +7723,13 @@ public:
|
||||
|
||||
|
||||
class Use_relaxed_field_copy: public Sql_mode_save,
|
||||
public Check_level_instant_set
|
||||
public Check_level_instant_set,
|
||||
public Abort_on_warning_instant_set
|
||||
{
|
||||
public:
|
||||
Use_relaxed_field_copy(THD *thd) :
|
||||
Sql_mode_save(thd), Check_level_instant_set(thd, CHECK_FIELD_IGNORE)
|
||||
Sql_mode_save(thd), Check_level_instant_set(thd, CHECK_FIELD_IGNORE),
|
||||
Abort_on_warning_instant_set(thd, 0)
|
||||
{
|
||||
thd->variables.sql_mode&= ~(MODE_NO_ZERO_IN_DATE | MODE_NO_ZERO_DATE);
|
||||
thd->variables.sql_mode|= MODE_INVALID_DATES;
|
||||
|
Reference in New Issue
Block a user