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

Unified Diff: third_party/sqlite/src/test/join.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/insert4.test ('k') | third_party/sqlite/src/test/join5.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/join.test
diff --git a/third_party/sqlite/src/test/join.test b/third_party/sqlite/src/test/join.test
index 4c83fa6b3b47692100c0a3babca5b971c14d7e3f..2b6951213fe58e2938f37447101441bf2141e24d 100644
--- a/third_party/sqlite/src/test/join.test
+++ b/third_party/sqlite/src/test/join.test
@@ -687,4 +687,30 @@ ifcapable pragma&&compileoption_diags {
}
}
+
+#-------------------------------------------------------------------------
+# Test a problem with reordering tables following a LEFT JOIN.
+#
+do_execsql_test join-13.0 {
+ CREATE TABLE aa(a);
+ CREATE TABLE bb(b);
+ CREATE TABLE cc(c);
+
+ INSERT INTO aa VALUES(45);
+ INSERT INTO cc VALUES(45);
+ INSERT INTO cc VALUES(45);
+}
+
+do_execsql_test join-13.1 {
+ SELECT * FROM aa LEFT JOIN bb, cc WHERE cc.c=aa.a;
+} {45 {} 45 45 {} 45}
+
+# In the following, the order of [cc] and [bb] must not be exchanged, even
+# though this would be helpful if the query used an inner join.
+do_execsql_test join-13.2 {
+ CREATE INDEX ccc ON cc(c);
+ SELECT * FROM aa LEFT JOIN bb, cc WHERE cc.c=aa.a;
+} {45 {} 45 45 {} 45}
+
+
finish_test
« no previous file with comments | « third_party/sqlite/src/test/insert4.test ('k') | third_party/sqlite/src/test/join5.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698