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,32 @@
# name: test/sql/alter/default/drop_default.test
# description: Test ALTER TABLE DROP DEFAULT
# group: [default]
statement ok
PRAGMA enable_verification;
statement ok
CREATE TABLE data(id INTEGER, x INTEGER);
statement ok
ALTER TABLE data ALTER COLUMN id DROP DEFAULT;
statement ok
INSERT INTO data VALUES (1, 0), (2, 1);
statement ok
ALTER TABLE data ALTER COLUMN id DROP DEFAULT;
statement ok
ALTER TABLE data ALTER COLUMN id DROP DEFAULT;
statement ok
ALTER TABLE data ALTER COLUMN x DROP DEFAULT;
statement ok
ALTER TABLE data ALTER COLUMN x DROP DEFAULT;
statement error
ALTER TABLE data ALTER COLUMN j DROP DEFAULT;
----
Binder Error: Table "data" does not have a column with name "j"