Changeset: 874025deab4d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=874025deab4d
Modified Files:
        sql/backends/monet5/rel_bin.c
Branch: default
Log Message:

fix small problem with case


diffs (14 lines):

diff --git a/sql/backends/monet5/rel_bin.c b/sql/backends/monet5/rel_bin.c
--- a/sql/backends/monet5/rel_bin.c
+++ b/sql/backends/monet5/rel_bin.c
@@ -697,7 +697,9 @@ exp2bin_case(backend *be, sql_exp *fe, s
                        if (next_cond) {
                                ncond = cond = es;
                                if (!ncond->nrcols) {
-                                       if (isel)
+                                       if (osel)
+                                               ncond = stmt_const(be, nsel, 
ncond);
+                                       else if (isel)
                                                ncond = stmt_const(be, isel, 
ncond);
                                        else
                                                ncond = stmt_const(be, 
bin_first_column(be, left), ncond);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to