# 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; ---- :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) ---- :Catalog Error.*t1 does not exist.* endloop