1
0
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:
Oleksandr Byelkin
2023-11-08 12:06:34 +01:00
parent 1697747461
commit fefd6d5559
11 changed files with 161 additions and 5 deletions

View File

@ -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;