mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +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:
@ -2621,3 +2621,16 @@ EXECUTE IMMEDIATE 'VALUES (?)' USING IGNORE;
|
|||||||
ERROR HY000: 'ignore' is not allowed in this context
|
ERROR HY000: 'ignore' is not allowed in this context
|
||||||
EXECUTE IMMEDIATE 'VALUES (?)' USING DEFAULT;
|
EXECUTE IMMEDIATE 'VALUES (?)' USING DEFAULT;
|
||||||
ERROR HY000: 'default' is not allowed in this context
|
ERROR HY000: 'default' is not allowed in this context
|
||||||
|
#
|
||||||
|
# MDEV-22610 Crash in INSERT INTO t1 (VALUES (DEFAULT) UNION VALUES (DEFAULT))
|
||||||
|
#
|
||||||
|
VALUES (DEFAULT) UNION VALUES (DEFAULT);
|
||||||
|
ERROR HY000: 'default' is not allowed in this context
|
||||||
|
VALUES (IGNORE) UNION VALUES (IGNORE);
|
||||||
|
ERROR HY000: 'ignore' is not allowed in this context
|
||||||
|
CREATE TABLE t1 (a INT DEFAULT 10);
|
||||||
|
INSERT INTO t1 (VALUES (DEFAULT) UNION VALUES (DEFAULT));
|
||||||
|
ERROR HY000: 'default' is not allowed in this context
|
||||||
|
INSERT INTO t1 (VALUES (IGNORE) UNION VALUES (IGNORE));
|
||||||
|
ERROR HY000: 'ignore' is not allowed in this context
|
||||||
|
DROP TABLE t1;
|
||||||
|
@ -1353,3 +1353,19 @@ VALUES (DEFAULT);
|
|||||||
EXECUTE IMMEDIATE 'VALUES (?)' USING IGNORE;
|
EXECUTE IMMEDIATE 'VALUES (?)' USING IGNORE;
|
||||||
--error ER_UNKNOWN_ERROR
|
--error ER_UNKNOWN_ERROR
|
||||||
EXECUTE IMMEDIATE 'VALUES (?)' USING DEFAULT;
|
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;
|
||||||
|
Reference in New Issue
Block a user