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

Unified Diff: third_party/sqlite/src/ext/fts5/test/fts5ad.test

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/ext/fts5/test/fts5ac.test ('k') | third_party/sqlite/src/ext/fts5/test/fts5ae.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/ext/fts5/test/fts5ad.test
diff --git a/third_party/sqlite/src/ext/fts5/test/fts5ad.test b/third_party/sqlite/src/ext/fts5/test/fts5ad.test
index 3881c7e161855d023f1dbecba53a9edc3940ab00..974aa781aa6a24455dac255aaeafc897fbac4d80 100644
--- a/third_party/sqlite/src/ext/fts5/test/fts5ad.test
+++ b/third_party/sqlite/src/ext/fts5/test/fts5ad.test
@@ -11,6 +11,8 @@
# This file implements regression tests for SQLite library. The
# focus of this script is testing the FTS5 module.
#
+# More specifically, the focus is on testing prefix queries, both with and
+# without prefix indexes.
#
source [file join [file dirname [info script]] fts5_common.tcl]
@@ -22,8 +24,10 @@ ifcapable !fts5 {
return
}
+foreach_detail_mode $testprefix {
+
do_execsql_test 1.0 {
- CREATE VIRTUAL TABLE yy USING fts5(x, y);
+ CREATE VIRTUAL TABLE yy USING fts5(x, y, detail=%DETAIL%);
INSERT INTO yy VALUES('Changes the result to be', 'the list of all matching');
INSERT INTO yy VALUES('indices (or all matching', 'values if -inline is');
INSERT INTO yy VALUES('specified as well.) If', 'indices are returned, the');
@@ -53,23 +57,23 @@ foreach {tn match res} {
foreach {T create} {
2 {
- CREATE VIRTUAL TABLE t1 USING fts5(a, b);
+ CREATE VIRTUAL TABLE t1 USING fts5(a, b, detail=%DETAIL%);
INSERT INTO t1(t1, rank) VALUES('pgsz', 32);
}
3 {
- CREATE VIRTUAL TABLE t1 USING fts5(a, b, prefix=1,2,3,4,5);
+ CREATE VIRTUAL TABLE t1 USING fts5(a, b, prefix="1,2,3,4", detail=%DETAIL%);
INSERT INTO t1(t1, rank) VALUES('pgsz', 32);
}
4 {
- CREATE VIRTUAL TABLE t1 USING fts5(a, b);
+ CREATE VIRTUAL TABLE t1 USING fts5(a, b, detail=%DETAIL%);
INSERT INTO t1(t1, rank) VALUES('pgsz', 32);
BEGIN;
}
5 {
- CREATE VIRTUAL TABLE t1 USING fts5(a, b, prefix=1,2,3,4,5);
+ CREATE VIRTUAL TABLE t1 USING fts5(a, b, prefix="1,2,3,4", detail=%DETAIL%);
INSERT INTO t1(t1, rank) VALUES('pgsz', 32);
BEGIN;
}
@@ -235,5 +239,7 @@ foreach {T create} {
catchsql COMMIT
}
+}
+
finish_test
« no previous file with comments | « third_party/sqlite/src/ext/fts5/test/fts5ac.test ('k') | third_party/sqlite/src/ext/fts5/test/fts5ae.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698