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

Have the recover module add "PRAGMA foreign_keys = off" to SQL output. Have the shell tool add ".dbconfig defensive off".

FossilOrigin-Name: dcfe3d3292851aa48a085a2c68623b049e2786c8dc7154ccc78508443973b5a1
This commit is contained in:
dan
2025-03-05 19:39:02 +00:00
parent bee4fb401e
commit fc9b5d2a95
6 changed files with 18 additions and 11 deletions

View File

@ -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