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

Unified Diff: third_party/sqlite/src/test/fts3b.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/fts3aux1.test ('k') | third_party/sqlite/src/test/fts3c.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/fts3b.test
diff --git a/third_party/sqlite/src/test/fts3b.test b/third_party/sqlite/src/test/fts3b.test
index 17ee0da85ac46b571ac0d2f0a5d610c3c4b78c9d..9bde3a254c2885f361824b86f28e95f21b8befb0 100644
--- a/third_party/sqlite/src/test/fts3b.test
+++ b/third_party/sqlite/src/test/fts3b.test
@@ -208,11 +208,23 @@ do_test fts3b-4.8 {
}
} {1 {SQL logic error or missing database}}
-# Don't allow update of docid, to match rowid behaviour.
do_test fts3b-4.9 {
- catchsql {
+ execsql { SELECT docid FROM t4 WHERE t4 MATCH 'testing' }
+} {12}
+do_test fts3b-4.10 {
+ execsql {
UPDATE t4 SET docid = 14 WHERE docid = 12;
+ SELECT docid FROM t4 WHERE t4 MATCH 'testing';
}
-} {1 {SQL logic error or missing database}}
+} {14}
+do_test fts3b-4.11 {
+ execsql { SELECT * FROM t4 WHERE rowid = 14; }
+} {{still testing}}
+do_test fts3b-4.12 {
+ execsql { SELECT * FROM t4 WHERE rowid = 12; }
+} {}
+do_test fts3b-4.13 {
+ execsql { SELECT docid FROM t4 WHERE t4 MATCH 'still'; }
+} {14}
finish_test
« no previous file with comments | « third_party/sqlite/src/test/fts3aux1.test ('k') | third_party/sqlite/src/test/fts3c.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698