OLD | NEW |
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 Loading... |
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 |
OLD | NEW |