34 lines
501 B
SQL
34 lines
501 B
SQL
# name: test/fuzzer/pedro/temp_sequence_reconnect.test
|
|
# description: Reconnect after creating a temp sequence
|
|
# group: [pedro]
|
|
|
|
require skip_reload
|
|
|
|
statement ok
|
|
PRAGMA enable_verification
|
|
|
|
load __TEST_DIR__/temp_sequence_restart
|
|
|
|
statement ok
|
|
CREATE SEQUENCE t1;
|
|
|
|
statement ok
|
|
CREATE TABLE t1 (
|
|
c1 INT,
|
|
CHECK(nextval('t1'))
|
|
);
|
|
|
|
statement ok
|
|
CREATE TEMP SEQUENCE t1;
|
|
|
|
statement ok
|
|
ALTER TABLE t1 ADD c0 INT;
|
|
|
|
statement ok
|
|
DROP SEQUENCE temp.t1
|
|
|
|
reconnect
|
|
|
|
statement ok
|
|
INSERT INTO t1 VALUES (1,1);
|