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

Unified Diff: third_party/sqlite/src/test/fts3aa.test

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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/test/fts3_common.tcl ('k') | third_party/sqlite/src/test/fts3ab.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/fts3aa.test
diff --git a/third_party/sqlite/src/test/fts3aa.test b/third_party/sqlite/src/test/fts3aa.test
index 46304fb19c8b901b9f429e967986cd20e3f5ec90..5d79e9318f2657e219cceaabba67ab5f830f98eb 100644
--- a/third_party/sqlite/src/test/fts3aa.test
+++ b/third_party/sqlite/src/test/fts3aa.test
@@ -146,6 +146,7 @@ do_test fts3aa-3.3 {
execsql {SELECT rowid FROM t1 WHERE content MATCH '-two one'}
} {1 5 9 13 17 21 25 29}
+breakpoint
do_test fts3aa-4.1 {
execsql {SELECT rowid FROM t1 WHERE content MATCH 'one OR two'}
} {1 2 3 5 6 7 9 10 11 13 14 15 17 18 19 21 22 23 25 26 27 29 30 31}
@@ -199,4 +200,28 @@ do_test fts3aa-6.4 {
execsql {SELECT rowid FROM t1 WHERE t1 MATCH 'four'}
} {-1 0 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31}
+# Test creation of FTS3 and FTS4 tables with columns that contain
+# an "=" character.
+#
+do_execsql_test fts3aa-7.1 {
+ CREATE VIRTUAL TABLE t2 USING fts3(xyz=abc);
+ SELECT xyz FROM t2;
+} {}
+do_catchsql_test fts3aa-7.2 {
+ CREATE VIRTUAL TABLE t3 USING fts4(xyz=abc);
+} {1 {unrecognized parameter: xyz=abc}}
+do_catchsql_test fts3aa-7.3 {
+ CREATE VIRTUAL TABLE t3 USING fts4(xyz = abc);
+} {1 {unrecognized parameter: xyz = abc}}
+
+do_execsql_test fts3aa-7.4 {
+ CREATE VIRTUAL TABLE t3 USING fts3(tokenize=simple, tokenize=simple);
+ SELECT tokenize FROM t3;
+} {}
+do_catchsql_test fts3aa-7.5 {
+ CREATE VIRTUAL TABLE t4 USING fts4(tokenize=simple, tokenize=simple);
+} {1 {unrecognized parameter: tokenize=simple}}
+
+
finish_test
+
« no previous file with comments | « third_party/sqlite/src/test/fts3_common.tcl ('k') | third_party/sqlite/src/test/fts3ab.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698