mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-13720 Server crashes in SEQUENCE::write_lock for temporary tables
This happens when doing NEXT VALUE for a temporary table Fixed by giving ER_NOT_SEQUENCE when trying to use normal temporary table with sequence functions Signed-off-by: Monty <monty@mariadb.org>
This commit is contained in:
@ -260,3 +260,12 @@ SELECT
|
||||
DROP SEQUENCE s1;
|
||||
--enable_ps_protocol
|
||||
--disable_metadata
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-13720 ER_NOT_SEQUENCE for temporary table
|
||||
--echo #
|
||||
|
||||
create temporary table tmp (i int);
|
||||
--error ER_NOT_SEQUENCE
|
||||
select next value for tmp;
|
||||
drop table tmp;
|
||||
|
Reference in New Issue
Block a user