aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authordan <Dan Kennedy>2025-03-05 19:39:02 +0000
committerdan <Dan Kennedy>2025-03-05 19:39:02 +0000
commitfc9b5d2a95fa28d81c72ab4e3bdaa08a65b223e0 (patch)
tree12f5cb391cb7e7bb9ce3b3ee06060429ec973ce2 /test
parentbee4fb401eb2b8ef7138b3cea2a53b4e12f5e2ed (diff)
downloadsqlite-fc9b5d2a95fa28d81c72ab4e3bdaa08a65b223e0.tar.gz
sqlite-fc9b5d2a95fa28d81c72ab4e3bdaa08a65b223e0.zip
Have the recover module add "PRAGMA foreign_keys = off" to SQL output. Have the shell tool add ".dbconfig defensive off".
FossilOrigin-Name: dcfe3d3292851aa48a085a2c68623b049e2786c8dc7154ccc78508443973b5a1
Diffstat (limited to 'test')
-rw-r--r--test/recover.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/recover.test b/test/recover.test
index 268d3a55b..ad6b7298d 100644
--- a/test/recover.test
+++ b/test/recover.test
@@ -47,6 +47,9 @@ proc recover_with_opts {opts} {
set sql [read $fd]
close $fd
+ # Remove the ".dbconfig defensive off" line
+ set sql [string map {".dbconfig defensive off" ""} $sql]
+
forcedelete test.db2
sqlite3 db2 test.db2
execsql $sql db2