37 lines
505 B
SQL
37 lines
505 B
SQL
# name: test/fuzzer/pedro/pushdown_error.test
|
|
# description: WAL cannot alter table
|
|
# group: [pedro]
|
|
|
|
# fuzzer
|
|
|
|
statement ok
|
|
PRAGMA enable_verification
|
|
|
|
load __TEST_DIR__/wal_crash.db
|
|
|
|
statement ok
|
|
CREATE TABLE t2(c1 INT);
|
|
|
|
statement ok
|
|
CREATE INDEX i0 ON t2(c1);
|
|
|
|
statement ok
|
|
CHECKPOINT;
|
|
|
|
statement ok
|
|
SET wal_autocheckpoint='1TB';
|
|
|
|
statement ok
|
|
PRAGMA disable_checkpoint_on_shutdown;
|
|
|
|
statement ok
|
|
DROP INDEX i0;
|
|
|
|
statement ok
|
|
ALTER TABLE t2 ALTER c1 SET DEFAULT 0;
|
|
|
|
restart
|
|
|
|
query I
|
|
SELECT * FROM t2;
|