Changeset: 050ee13f2664 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=050ee13f2664
Modified Files:
        sql/server/rel_select.c
Branch: Oct2020
Log Message:

don't swap expressions when right is also a select expression


diffs (12 lines):

diff --git a/sql/server/rel_select.c b/sql/server/rel_select.c
--- a/sql/server/rel_select.c
+++ b/sql/server/rel_select.c
@@ -1692,7 +1692,7 @@ rel_compare(sql_query *query, sql_rel *r
                compare_op = "=";
        }
 
-       if (!ro2 && lo->token == SQL_SELECT) { /* swap subquery to the right 
hand side */
+       if (!ro2 && lo->token == SQL_SELECT && ro->token != SQL_SELECT) { /* 
swap subquery to the right hand side */
                symbol *tmp = lo;
 
                lo = ro;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to