mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-09 10:14:21 +01:00
Add regression test for alter table with notnull constraint
This commit is contained in:
@@ -204,3 +204,10 @@ do_execsql_test_on_specific_db {:memory:} alter-table-rename-to-quoted-identifie
|
||||
"CREATE INDEX idx ON \"t t\" (\"b b\")"
|
||||
"2"
|
||||
}
|
||||
|
||||
# https://github.com/tursodatabase/turso/issues/3391
|
||||
do_execsql_test_on_specific_db {:memory:} alter-table-add-notnull-col {
|
||||
CREATE TABLE t (a);
|
||||
ALTER TABLE t ADD b NOT NULL;
|
||||
.schema t
|
||||
} {{CREATE TABLE t (a, b NOT NULL);}}
|
||||
|
||||
Reference in New Issue
Block a user