Changeset: 17090e542067 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/17090e542067
Modified Files:
        sql/backends/monet5/rel_bin.c
Branch: pushcands
Log Message:

coalesce also needs to backproject into the right oid space


diffs (17 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
@@ -1101,7 +1101,12 @@ exp2bin_coalesce(backend *be, sql_exp *f
                                        val = stmt_const(be, pos, NULL, val);
                                else if (!val->cand && nsel)
                                        val = stmt_project(be, nsel, val);
-
+                               else if (rsel && val->cand && val->cand == 
isel) {
+                                       val = stmt_project(be, rsel, val);
+                                       val->cand = nsel;
+                               } else if (rsel && val->cand && val->cand != 
nsel && val->cand != rsel) {
+                                       assert(0);
+                               }
                                res = stmt_replace(be, res, pos, val);
                        }
                        if (en->next) { /* handled then part */
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to