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

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

Issue 694353003: Get `gn gen` to succeed on Windows (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: remove GYP_DEFINES code Created 6 years, 1 month 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/tkt3879.test ('k') | third_party/sqlite/src/test/tkt3918.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/tkt3911.test
diff --git a/third_party/sqlite/src/test/tkt3911.test b/third_party/sqlite/src/test/tkt3911.test
new file mode 100644
index 0000000000000000000000000000000000000000..2ac56cbbc756d9be4f276c3623270ea9d257fba6
--- /dev/null
+++ b/third_party/sqlite/src/test/tkt3911.test
@@ -0,0 +1,58 @@
+# 2009 June 11
+#
+# 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.
+#
+#***********************************************************************
+#
+# Tests to verify ticket #3911 is fixed.
+#
+# $Id: tkt3911.test,v 1.1 2009/06/12 03:27:28 drh Exp $
+
+set testdir [file dirname $argv0]
+source $testdir/tester.tcl
+
+do_test tkt3911.1 {
+ execsql {
+ CREATE TABLE t1(a,b);
+ INSERT INTO t1 VALUES(1,2);
+ INSERT INTO t1 VALUES(11,12);
+
+ CREATE TABLE t2(b,c);
+ INSERT INTO t2 VALUES(2,3);
+ INSERT INTO t2 VALUES(22,23);
+
+ SELECT * FROM t1 JOIN t2 USING(b);
+ }
+} {1 2 3}
+do_test tkt3911.2 {
+ db eval {
+ SELECT * FROM t1 JOIN (t2) AS x USING (b);
+ }
+} {1 2 3}
+do_test tkt3911.3 {
+ db eval {
+ SELECT * FROM t1 JOIN (SELECT * FROM t2) AS x USING (b);
+ }
+} {1 2 3}
+
+do_test tkt3911.4 {
+ db eval {
+ CREATE TABLE t3(m,a);
+ INSERT INTO t3 VALUES('one',1);
+ INSERT INTO t3 VALUES('two',2);
+
+ SELECT * FROM t3 JOIN (SELECT * FROM t1 NATURAL JOIN t2) AS x USING(a);
+ }
+} {one 1 2 3}
+do_test tkt3911.5 {
+ db eval {
+ SELECT * FROM t3 JOIN (SELECT * FROM t1 JOIN t2 USING (b)) AS x USING(a);
+ }
+} {one 1 2 3}
+
+finish_test
« no previous file with comments | « third_party/sqlite/src/test/tkt3879.test ('k') | third_party/sqlite/src/test/tkt3918.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698