Commit e183aec1 authored by Anel Husakovic's avatar Anel Husakovic

MDEV-24018: SIGSEGV in Item_func_nextval::update_table on SELECT SETVAL

Reviewed-by: wlad@mariadb.com
parent e64084d5
...@@ -541,5 +541,10 @@ CREATE VIEW v AS SELECT 1; ...@@ -541,5 +541,10 @@ CREATE VIEW v AS SELECT 1;
LOCK TABLE v READ; LOCK TABLE v READ;
SELECT NEXT VALUE FOR v; SELECT NEXT VALUE FOR v;
ERROR 42S02: 'test.v' is not a SEQUENCE ERROR 42S02: 'test.v' is not a SEQUENCE
#
# MDEV-24018: SIGSEGV in Item_func_nextval::update_table on SELECT SETVAL
#
SELECT SETVAL (v,0);
ERROR 42S02: 'test.v' is not a SEQUENCE
UNLOCK TABLES; UNLOCK TABLES;
DROP VIEW v; DROP VIEW v;
...@@ -288,5 +288,12 @@ CREATE VIEW v AS SELECT 1; ...@@ -288,5 +288,12 @@ CREATE VIEW v AS SELECT 1;
LOCK TABLE v READ; LOCK TABLE v READ;
--error ER_NOT_SEQUENCE --error ER_NOT_SEQUENCE
SELECT NEXT VALUE FOR v; SELECT NEXT VALUE FOR v;
--echo #
--echo # MDEV-24018: SIGSEGV in Item_func_nextval::update_table on SELECT SETVAL
--echo #
--error ER_NOT_SEQUENCE
SELECT SETVAL (v,0);
UNLOCK TABLES; UNLOCK TABLES;
DROP VIEW v; DROP VIEW v;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment