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

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

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/fordelete.test ('k') | third_party/sqlite/src/test/fts3atoken.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 6ff384a0d316f89646b7bf26a164e0e4818db1f0..08d825dd176aff3de27462da403d517ab35022df 100644
--- a/third_party/sqlite/src/test/fts3aa.test
+++ b/third_party/sqlite/src/test/fts3aa.test
@@ -16,6 +16,7 @@
set testdir [file dirname $argv0]
source $testdir/tester.tcl
+set testprefix fts3aa
# If SQLITE_ENABLE_FTS3 is defined, omit this file.
ifcapable !fts3 {
@@ -221,5 +222,26 @@ do_catchsql_test fts3aa-7.5 {
CREATE VIRTUAL TABLE t4 USING fts4(tokenize=simple, tokenize=simple);
} {1 {unrecognized parameter: tokenize=simple}}
+do_execsql_test 8.0 {
+ CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
+ BEGIN;
+ INSERT INTO t0(rowid, content) VALUES(1, 'abc');
+ UPDATE t0 SET docid=5 WHERE docid=1;
+ INSERT INTO t0(rowid, content) VALUES(6, 'abc');
+}
+do_execsql_test 8.1 {
+ SELECT docid FROM t0 WHERE t0 MATCH 'abc';
+} {6 5}
+do_execsql_test 8.2 {
+ SELECT docid FROM t0 WHERE t0 MATCH '"abc abc"';
+} {}
+do_execsql_test 8.3 { COMMIT }
+do_execsql_test 8.4 {
+ SELECT docid FROM t0 WHERE t0 MATCH 'abc';
+} {6 5}
+do_execsql_test 8.5 {
+ SELECT docid FROM t0 WHERE t0 MATCH '"abc abc"';
+} {}
+
finish_test
« no previous file with comments | « third_party/sqlite/src/test/fordelete.test ('k') | third_party/sqlite/src/test/fts3atoken.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698