Changeset: 235399f6dab0 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=235399f6dab0
Modified Files:
        sql/server/rel_select.c
Branch: Oct2014
Log Message:

restore error message for single column in statements


diffs (16 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
@@ -3133,8 +3133,11 @@ rel_logical_exp(mvc *sql, sql_rel *rel, 
 
                        /* list through all left/right expressions */
                        rexps = right->exps;
-                       if (!is_project(right->op) || list_length(ll) != 
list_length(rexps))
+                       if (!is_project(right->op) || list_length(ll) != 
list_length(rexps)) {
+                               if (list_length(ll) == 1)
+                                       return sql_error(sql, 02, "IN: iinner 
query should return a single column");
                                return NULL;
+                       }
 
                        for (n=ll->h, m=rexps->h; n && m; n = n->next, m = 
m->next) {
                                sql_exp *l = n->data;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to