diff options
author | drh <drh@noemail.net> | 2012-05-28 18:22:41 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2012-05-28 18:22:41 +0000 |
commit | 14bcd7d25e0902912d2eecef4839934e22f1b9db (patch) | |
tree | 5e011a6c08fa26cdd4388ce8713f04385ffb26d9 /test/fts3fault2.test | |
parent | e56467fc9ffdf634b939c33886e6513fc27376c3 (diff) | |
parent | 9cb7200815baf934dff0db605a38ff675bcef40e (diff) | |
download | sqlite-14bcd7d25e0902912d2eecef4839934e22f1b9db.tar.gz sqlite-14bcd7d25e0902912d2eecef4839934e22f1b9db.zip |
Merge the unicode61 tokenizer and the shared-cache-memory database changes
into the sessions branch.
FossilOrigin-Name: df817e70afc3f41e680d8f84dfa5772d5b3ae4d9
Diffstat (limited to 'test/fts3fault2.test')
-rw-r--r-- | test/fts3fault2.test | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/fts3fault2.test b/test/fts3fault2.test index 0178ed27c..f2d10bc3f 100644 --- a/test/fts3fault2.test +++ b/test/fts3fault2.test @@ -131,4 +131,28 @@ do_faultsim_test 4.1 -prep { faultsim_test_result {0 {}} } +ifcapable fts3_unicode { + do_test 5.0 { + faultsim_delete_and_reopen + execsql { + CREATE VIRTUAL TABLE ft USING fts4(a, tokenize=unicode61); + } + faultsim_save_and_close + } {} + + do_faultsim_test 5.1 -faults oom* -prep { + faultsim_restore_and_reopen + db eval {SELECT * FROM sqlite_master} + } -body { + execsql { INSERT INTO ft VALUES('the quick brown fox'); } + execsql { INSERT INTO ft VALUES( + 'theunusuallylongtokenthatjustdragsonandonandonandthendragsonsomemoreeof' + ); + } + execsql { SELECT docid FROM ft WHERE ft MATCH 'th*' } + } -test { + faultsim_test_result {0 {1 2}} + } +} + finish_test |