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

Unified Diff: third_party/sqlite/src/test/vtabE.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/vtabA.test ('k') | third_party/sqlite/src/test/vtab_alter.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/vtabE.test
diff --git a/third_party/sqlite/src/test/vtabE.test b/third_party/sqlite/src/test/vtabE.test
new file mode 100644
index 0000000000000000000000000000000000000000..22ec0181bfbc5c9e45228e330f4c41f20196fe0c
--- /dev/null
+++ b/third_party/sqlite/src/test/vtabE.test
@@ -0,0 +1,48 @@
+# 2009 November 23
+#
+# The author disclaims copyright to this source code. In place of
+# a legal notice, here is a blessing:
+#
+# May you do good and not evil.
+# May you find forgiveness for yourself and forgive others.
+# May you share freely, never taking more than you give.
+#
+#***********************************************************************
+# This file implements regression tests for SQLite library.
+#
+# The focus of this file making sure the register cache logic works
+# correctly with virtual tables. Ticket [16fbf14cb2].
+#
+
+set testdir [file dirname $argv0]
+source $testdir/tester.tcl
+
+ifcapable !vtab {
+ finish_test
+ return
+}
+
+register_tclvar_module [sqlite3_connection_pointer db]
+
+unset -nocomplain vtabE
+set vtabE(vtabE1) 11
+set vtabE(vtabE2) 22
+unset -nocomplain vtabE1
+set vtabE1(w) x
+set vtabE1(y) z
+unset -nocomplain vtabE2
+set vtabE2(a) b
+set vtabE2(c) d
+
+do_test vtabE-1 {
+ db eval {
+ CREATE VIRTUAL TABLE t1 USING tclvar;
+ CREATE VIRTUAL TABLE t2 USING tclvar;
+ CREATE TABLE t3(a INTEGER PRIMARY KEY, b);
+ SELECT t1.*, t2.*, abs(t3.b + abs(t2.value + abs(t1.value)))
+ FROM t1 LEFT JOIN t2 ON t2.name = t1.arrayname
+ LEFT JOIN t3 ON t3.a=t2.value
+ WHERE t1.name = 'vtabE'
+ ORDER BY t1.value, t2.value;
+ }
+} {vtabE vtabE1 11 vtabE1 w x {} vtabE vtabE1 11 vtabE1 y z {} vtabE vtabE2 22 vtabE2 a b {} vtabE vtabE2 22 vtabE2 c d {}}
« no previous file with comments | « third_party/sqlite/src/test/vtabA.test ('k') | third_party/sqlite/src/test/vtab_alter.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698