Changeset: 20123d56e802 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=20123d56e802 Modified Files: sql/backends/monet5/rel_bin.c Branch: pushdown Log Message:
make sure we handle single value projections again diffs (16 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 @@ -317,7 +317,11 @@ subrel_project( backend *be, stmt *s) if (c->type != st_alias) { c = stmt_project(be, cand, c); } else { /* st_alias */ - stmt *s = stmt_project(be, cand, c->op1); + stmt *s = c->op1; + if (s->nrcols == 0) + s = stmt_const(be, cand, s); + else + s = stmt_project(be, cand, s); c = stmt_alias(be, s, c->tname, c->cname); } append(l, c); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list