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

@ -7497,6 +7497,27 @@ ERROR HY000: Illegal parameter data types row and boolean for operation '='
#
# End of 10.4 tests
#
#
# MDEV-32656: ASAN errors in base_list_iterator::next /
# setup_table_map upon 2nd execution of PS
# (10.6 part)
#
CREATE TABLE t1 (id BIGINT);
INSERT INTO t1 VALUES (1),(2);
CREATE VIEW v1 AS SELECT * FROM t1;
CREATE TABLE t2 (a INT);
INSERT INTO t2 VALUES (2),(3);
CREATE TABLE t3 (b INT);
INSERT INTO t3 VALUES (3),(4);
insert into t2 select (('e','e') IN (SELECT v1.id, v1.id FROM v1 JOIN t3));
Warnings:
Warning 1292 Truncated incorrect DECIMAL value: 'e'
Warning 1292 Truncated incorrect DECIMAL value: 'e'
drop view v1;
drop table t1, t2, t3;
#
# End of 10.6 tests
#
set optimizer_switch=default;
select @@optimizer_switch like '%exists_to_in=off%';
@@optimizer_switch like '%exists_to_in=off%'