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

Unified Diff: third_party/sqlite/src/test/vtabA.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/vtab5.test ('k') | third_party/sqlite/src/test/vtabE.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/vtabA.test
diff --git a/third_party/sqlite/src/test/vtabA.test b/third_party/sqlite/src/test/vtabA.test
index 5eba5b5ffa8771709dcd28af7fd2af5ad42c405d..928cc2b703a0b129ff765f16c50e9e68d2371228 100644
--- a/third_party/sqlite/src/test/vtabA.test
+++ b/third_party/sqlite/src/test/vtabA.test
@@ -131,4 +131,23 @@ do_test vtabA-2.4 {
analyse_parse {(a whatelse can i hidden test, b HIDDEN hidden)} {a b}
} {{} {whatelse can i test} hidden}
+
+# Ticket [d2f02d37f52bfe23e421f2c60fbb8586ac76ff01]:
+# assertion failure on an UPDATE involving two virtual tables.
+#
+do_test vtabA-3.1 {
+ db eval {
+ DROP TABLE IF EXISTS t1;
+ DROP TABLE IF EXISTS t2;
+ CREATE TABLE t1(a,b);
+ INSERT INTO t1 VALUES(1,2);
+ CREATE TABLE t2(x,y);
+ INSERT INTO t2 VALUES(3,4);
+ CREATE VIRTUAL TABLE vt1 USING echo(t1);
+ CREATE VIRTUAL TABLE vt2 USING echo(t2);
+ UPDATE vt2 SET x=(SELECT a FROM vt1 WHERE b=2) WHERE y=4;
+ SELECT * FROM t2;
+ }
+} {1 4}
+
finish_test
« no previous file with comments | « third_party/sqlite/src/test/vtab5.test ('k') | third_party/sqlite/src/test/vtabE.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698