Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: third_party/sqlite/src/test/fts4check.test

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/sqlite/src/test/fts3tok1.test ('k') | third_party/sqlite/src/test/fts4content.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 2012 March 26 1 # 2012 March 26
2 # 2 #
3 # The author disclaims copyright to this source code. In place of 3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing: 4 # a legal notice, here is a blessing:
5 # 5 #
6 # May you do good and not evil. 6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others. 7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give. 8 # May you share freely, never taking more than you give.
9 # 9 #
10 #************************************************************************* 10 #*************************************************************************
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 do_test 4.2 { 173 do_test 4.2 {
174 db close 174 db close
175 sqlite3 db test.db 175 sqlite3 db test.db
176 catchsql { 176 catchsql {
177 INSERT INTO t4(t4) VALUES('integrity-check'); 177 INSERT INTO t4(t4) VALUES('integrity-check');
178 } 178 }
179 } {1 {database disk image is malformed}} 179 } {1 {database disk image is malformed}}
180 reset_db 180 reset_db
181 181
182 #--------------------------------------------------------------------------
183 # Test case 5.*
184 #
185 # Test that the integrity-check works if there is uncommitted data.
186 #
187 do_execsql_test 5.0 {
188 BEGIN;
189 CREATE VIRTUAL TABLE t5 USING fts4(a, prefix="1,2,3");
190 INSERT INTO t5 VALUES('And down by Kosiosko, where the reed-banks sweep');
191 INSERT INTO t5 VALUES('and sway, and the rolling plains are wide, the');
192 INSERT INTO t5 VALUES('man from snowy river is a household name today,');
193 INSERT INTO t5 VALUES('and the stockmen tell the story of his ride');
194 }
195
196 do_execsql_test 5.1 {
197 INSERT INTO t5(t5) VALUES('integrity-check');
198 } {}
199
200 do_catchsql_test 5.2 {
201 INSERT INTO t5_content VALUES(5, 'his hardy mountain pony');
202 INSERT INTO t5(t5) VALUES('integrity-check');
203 } {1 {database disk image is malformed}}
204
205 do_execsql_test 5.3 ROLLBACK
206
207 do_execsql_test 5.4 {
208 CREATE VIRTUAL TABLE t5 USING fts4(a, prefix="1,2,3");
209 INSERT INTO t5(t5) VALUES('integrity-check');
210 } {}
211
182 finish_test 212 finish_test
183 213
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/fts3tok1.test ('k') | third_party/sqlite/src/test/fts4content.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698