diff options
| author | Anel Husakovic <anel@mariadb.org> | 2020-10-27 00:54:07 +0100 |
|---|---|---|
| committer | Anel Husakovic <anel@mariadb.org> | 2020-10-27 00:54:40 +0100 |
| commit | 82dff84438e83d87adf9015bafb5198bb1b1d257 (patch) | |
| tree | 95323d5111f740f67687fa8064169885120e50c0 | |
| parent | 616ab68a959b1788a9465b66e07d0fa28777f50e (diff) | |
| download | mariadb-git-bb-10.6-anel-MDEV-24018.tar.gz | |
MDEV-24018: SIGSEGV in Item_func_nextval::update_table on SELECT SETVALbb-10.6-anel-MDEV-24018
- Cherry-pick a6987d9fb921a6638bb1a2397b89ca606fad6f49 and add test case
| -rw-r--r-- | mysql-test/suite/sql_sequence/next.result | 5 | ||||
| -rw-r--r-- | mysql-test/suite/sql_sequence/next.test | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/suite/sql_sequence/next.result b/mysql-test/suite/sql_sequence/next.result index fe761baa032..76991fbe68c 100644 --- a/mysql-test/suite/sql_sequence/next.result +++ b/mysql-test/suite/sql_sequence/next.result @@ -541,5 +541,10 @@ CREATE VIEW v AS SELECT 1; LOCK TABLE v READ; SELECT NEXT VALUE FOR v; 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; DROP VIEW v; diff --git a/mysql-test/suite/sql_sequence/next.test b/mysql-test/suite/sql_sequence/next.test index 5eac3b668ba..bfa6b1ce93e 100644 --- a/mysql-test/suite/sql_sequence/next.test +++ b/mysql-test/suite/sql_sequence/next.test @@ -288,5 +288,11 @@ CREATE VIEW v AS SELECT 1; LOCK TABLE v READ; --error ER_NOT_SEQUENCE 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; DROP VIEW v; |
