1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-22610 Crash in INSERT INTO t1 (VALUES (DEFAULT) UNION VALUES (DEFAULT))

The fix for MDEV-21995 earlier fixed MDEV-22610. Adding tests only.
This commit is contained in:
Alexander Barkov
2020-05-19 12:40:59 +04:00
parent 810b7f8ecb
commit f7079d295b
2 changed files with 29 additions and 0 deletions

View File

@ -1353,3 +1353,19 @@ VALUES (DEFAULT);
EXECUTE IMMEDIATE 'VALUES (?)' USING IGNORE;
--error ER_UNKNOWN_ERROR
EXECUTE IMMEDIATE 'VALUES (?)' USING DEFAULT;
--echo #
--echo # MDEV-22610 Crash in INSERT INTO t1 (VALUES (DEFAULT) UNION VALUES (DEFAULT))
--echo #
--error ER_UNKNOWN_ERROR
VALUES (DEFAULT) UNION VALUES (DEFAULT);
--error ER_UNKNOWN_ERROR
VALUES (IGNORE) UNION VALUES (IGNORE);
CREATE TABLE t1 (a INT DEFAULT 10);
--error ER_UNKNOWN_ERROR
INSERT INTO t1 (VALUES (DEFAULT) UNION VALUES (DEFAULT));
--error ER_UNKNOWN_ERROR
INSERT INTO t1 (VALUES (IGNORE) UNION VALUES (IGNORE));
DROP TABLE t1;