Changeset: a295e9335e36 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a295e9335e36 Modified Files: sql/backends/monet5/rel_bin.c Branch: default Log Message:
small fix for keeping parts of the case statement aligned (solves sqlancer10 issues) diffs (15 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 @@ -693,8 +693,10 @@ exp2bin_case(backend *be, sql_exp *fe, s } else ncond = stmt_const(be, bin_first_column(be, left), ncond); } - if (isel && !ncond->cand) + if (isel && !ncond->cand) { ncond = stmt_project(be, nsel, ncond); + ncond->cand = nsel; + } stmt *s = stmt_uselect(be, ncond, stmt_bool(be, 1), cmp_equal, !ncond->cand?rsel:NULL, 0/*anti*/, 0); if (rsel && ncond->cand) rsel = stmt_project(be, s, rsel); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list