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

Side by Side Diff: third_party/sqlite/src/test/fts3fault2.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
OLDNEW
1 # 2011 February 3 1 # 2011 February 3
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 execsql { INSERT INTO ft VALUES( 148 execsql { INSERT INTO ft VALUES(
149 'theunusuallylongtokenthatjustdragsonandonandonandthendragsonsomemoreeof' 149 'theunusuallylongtokenthatjustdragsonandonandonandthendragsonsomemoreeof'
150 ); 150 );
151 } 151 }
152 execsql { SELECT docid FROM ft WHERE ft MATCH 'th*' } 152 execsql { SELECT docid FROM ft WHERE ft MATCH 'th*' }
153 } -test { 153 } -test {
154 faultsim_test_result {0 {1 2}} 154 faultsim_test_result {0 {1 2}}
155 } 155 }
156 } 156 }
157 157
158 reset_db
159 do_test 6.0 {
160 execsql {
161 CREATE VIRTUAL TABLE t6 USING fts4(x,order=DESC);
162 INSERT INTO t6(docid, x) VALUES(-1,'a b');
163 INSERT INTO t6(docid, x) VALUES(1, 'b');
164 }
165 faultsim_save_and_close
166 } {}
167
168 do_faultsim_test 6.1 -faults oom* -prep {
169 faultsim_restore_and_reopen
170 db eval {SELECT * FROM sqlite_master}
171 } -body {
172 execsql { SELECT docid FROM t6 WHERE t6 MATCH '"a* b"' }
173 } -test {
174 faultsim_test_result {0 -1}
175 }
176
158 finish_test 177 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/fts3fault.test ('k') | third_party/sqlite/src/test/fts3matchinfo.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698