1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix an issue with sqldiff reported by

[forum:/info/9bd2155bdfae25a7|forum post 9bd2155bdfae25a7].

FossilOrigin-Name: 736a79c1491065f4ee77ce644af0e529e555ca733c78dbd55487d55d4ddbe5bd
This commit is contained in:
drh
2023-05-27 20:08:23 +00:00
parent 870fe69c72
commit 4308b88dcd
4 changed files with 43 additions and 21 deletions

View File

@ -63,4 +63,26 @@ CREATE TABLE t3(a,b,c);
INSERT INTO t3(rowid,a,b,c) VALUES(1,111,222,333);
DROP TABLE t4;}
db close
forcedelete test.db test2.db
sqlite3 db test.db
do_test sqldiff-2.0 {
db eval {
CREATE TABLE t1(a INTEGER PRIMARY KEY);
}
db close
sqlite3 db test2.db
db eval {
CREATE TABLE t1(a INTEGER PRIMARY KEY, b);
}
db close
set line "exec $PROG test.db test2.db"
unset -nocomplain ::MSG
catch {eval $line} ::MSG
} {0}
do_test sqldiff-2.1 {
set ::MSG
} {ALTER TABLE t1 ADD COLUMN b;}
finish_test