We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29950f2 commit 8be1404Copy full SHA for 8be1404
1 file changed
test/sqlcipher-codecerror.test
@@ -141,4 +141,31 @@ do_test codec-error-journal-wal-transaction {
141
db close
142
file delete -force test.db
143
144
+do_test codec-error-journal-wal-read {
145
+ codec-test-setup
146
+
147
+ sqlite_orig db test.db
148
149
+ catchsql {
150
+ PRAGMA key = 'testkey';
151
+ SELECT count(*) FROM sqlite_master;
152
+ PRAGMA cipher_fail_next_decrypt = 1;
153
+ UPDATE t1 SET b = 'fail' WHERE a = 5000;
154
+ }
155
156
+ db close
157
158
159
+ execsql {
160
+ PRAGMA cipher_fail_next_decrypt = 0;
161
162
+ PRAGMA cipher_integrity_check;
163
+ PRAGMA integrity_check;
164
+ SELECT b FROM t1 where a = 5000;
165
166
167
+} {ok ok {value 5000}}
168
+db close
169
+file delete -force test.db
170
171
finish_test
0 commit comments