From: dan Date: Mon, 16 Jan 2012 16:39:36 +0000 (+0000) Subject: Test the fts4 content and prefix options together. X-Git-Tag: version-3.7.11~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e05180fb8a3aa23c7891d1faeac30c0757e3e01;p=thirdparty%2Fsqlite.git Test the fts4 content and prefix options together. FossilOrigin-Name: de11cd5cc903e56ff641079bc64dd0ae5e133aa7 --- diff --git a/manifest b/manifest index d3c4376dbd..ef4a592efe 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Version\s3.7.10 -D 2012-01-16T13:28:40.069 +C Test\sthe\sfts4\scontent\sand\sprefix\soptions\stogether. +D 2012-01-16T16:39:36.406 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f F Makefile.in 3f79a373e57c3b92dabf76f40b065e719d31ac34 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23 @@ -494,7 +494,7 @@ F test/fts3shared.test 8bb266521d7c5495c0ae522bb4d376ad5387d4a2 F test/fts3snippet.test 8e956051221a34c7daeb504f023cb54d5fa5a8b2 F test/fts3sort.test 95be0b19d7e41c44b29014f13ea8bddd495fd659 F test/fts4aa.test 6e7f90420b837b2c685f3bcbe84c868492d40a68 -F test/fts4content.test 2624253c7e5a32d0c0d51f776dcd4526f0a51097 +F test/fts4content.test 17b2360f7d1a9a7e5aa8022783f5c5731b6dfd4f F test/func.test 6c5ce11e3a0021ca3c0649234e2d4454c89110ca F test/func2.test 772d66227e4e6684b86053302e2d74a2500e1e0f F test/func3.test 001021e5b88bd02a3b365a5c5fd8f6f49d39744a @@ -987,8 +987,7 @@ F tool/tostr.awk e75472c2f98dd76e06b8c9c1367f4ab07e122d06 F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f F tool/warnings-clang.sh 9f406d66e750e8ac031c63a9ef3248aaa347ef2a F tool/warnings.sh fbc018d67fd7395f440c28f33ef0f94420226381 -P 9da1cd0a06aca4eb3fb21fa4d321b9e3e07444b4 -R 81a3b6b323708ac95becda2f7731a3a4 -T +sym-version-3.7.10 * -U drh -Z 1c2c75389d69d7c8466f72bd2161ada0 +P ebd01a8deffb5024a5d7494eef800d2366d97204 +R 40287a4cf4afc5ee1880263d8270c08c +U dan +Z 8212754ed5e92bf82a949bd6834df88c diff --git a/manifest.uuid b/manifest.uuid index a36b217ff1..4893ac9075 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -ebd01a8deffb5024a5d7494eef800d2366d97204 \ No newline at end of file +de11cd5cc903e56ff641079bc64dd0ae5e133aa7 \ No newline at end of file diff --git a/test/fts4content.test b/test/fts4content.test index 025b600b6b..59c4199fa2 100644 --- a/test/fts4content.test +++ b/test/fts4content.test @@ -43,6 +43,9 @@ ifcapable !fts3 { # exist, the FTS table can still be used for INSERT and some # SELECT statements. # +# 8.* - Test that if the content=xxx and prefix options are used together, +# the 'rebuild' command still works. +# do_execsql_test 1.1.1 { CREATE TABLE t1(a, b, c); @@ -498,4 +501,25 @@ do_catchsql_test 7.2.4 { SELECT * FROM ft9 WHERE ft9 MATCH 'N'; } {1 {SQL logic error or missing database}} +#------------------------------------------------------------------------- +# Test cases 8.* +# +do_execsql_test 8.1 { + CREATE TABLE t10(a, b); + INSERT INTO t10 VALUES( + 'abasia abasic abask', 'Abassin abastardize abatable'); + INSERT INTO t10 VALUES( + 'abate abatement abater', 'abatis abatised abaton'); + INSERT INTO t10 VALUES( + 'abator abattoir Abatua', 'abature abave abaxial'); + + CREATE VIRTUAL TABLE ft10 USING fts4(content=t10, prefix="2,4", a, b); +} + +do_execsql_test 8.2 { SELECT * FROM ft10 WHERE a MATCH 'ab*'; } +do_execsql_test 8.3 { INSERT INTO ft10(ft10) VALUES('rebuild'); } +do_execsql_test 8.4 { SELECT rowid FROM ft10 WHERE a MATCH 'ab*'; } {1 2 3} +do_execsql_test 8.5 { SELECT rowid FROM ft10 WHERE b MATCH 'abav*'; } {3} +do_execsql_test 8.6 { SELECT rowid FROM ft10 WHERE ft10 MATCH 'abas*'; } {1} + finish_test