should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
# name: test/fuzzer/pedro/currval_sequence_dependency.test
# description: Test sequence dependency in currval
# group: [pedro]
# FIXME - during checkpoint recovery we no longer bind so we no longer have dependency information
require skip_reload
statement ok
PRAGMA enable_verification
foreach fun nextval currval
statement ok
CREATE SEQUENCE seq;
statement ok
CREATE TABLE t1(c1 INT, CHECK(${fun}('seq')));
statement error
DROP SEQUENCE seq;
----
<REGEX>:Dependency Error.*table "t1" depends on index "seq".*
statement ok
DROP SEQUENCE seq CASCADE;
# this also drops the table
statement error
INSERT INTO t1 VALUES (1)
----
<REGEX>:Catalog Error.*t1 does not exist.*
endloop