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

Add test case for using both SQLITE_CHANGESETAPPLY_IGNORENOOP and SQLITE_CHANGESETAPPLY_FKNOACTION.

FossilOrigin-Name: b1cc53fa3fb2ac3abeadd3282d8751f4d533315754159f16ca7f7f300ccdd8c8
This commit is contained in:
dan
2025-01-06 17:01:35 +00:00
parent f19d7b4de1
commit cee8b04d33
3 changed files with 23 additions and 8 deletions

View File

@ -149,5 +149,20 @@ do_execsql_test 2.5 {
SELECT * FROM c1;
} {two}
db_restore_and_reopen
db eval { PRAGMA foreign_keys = 1 }
do_test 2.6 {
list [catch {
sqlite3changeset_apply_v2 -ignorenoop -noaction db $C conflict
} msg] $msg
} {1 SQLITE_CONSTRAINT}
do_execsql_test 2.7 {
SELECT * FROM p1;
} {1 1 one 2 2 two}
do_execsql_test 2.8 {
SELECT * FROM c1;
} {two}
finish_test