mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Add the SQLITE_DEFAULT_DEFENSIVE compile-time option. Fix up test cases
so that they work with DEFENSIVE enabled. FossilOrigin-Name: 3212733cb6d1a59516d67a86df7c7b1d2456a1b2e5d7080c26b0e87b2609c65d
This commit is contained in:
@ -186,7 +186,6 @@ foreach {DO_MALLOC_TEST enc} {
|
||||
# Test a corruption case:
|
||||
sqlite3_db_config db DEFENSIVE 0
|
||||
execsql { UPDATE ft_content SET c1b = 'hello world' WHERE c1b = $numbers }
|
||||
sqlite3_db_config db DEFENSIVE 1
|
||||
do_error_test $T.2.3 {
|
||||
SELECT offsets(ft) FROM ft WHERE ft MATCH 'onehundred'
|
||||
} {database disk image is malformed}
|
||||
|
Reference in New Issue
Block a user