Changeset: 2289647476dd for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/2289647476dd
Modified Files:
sql/server/rel_unnest.c
Branch: default
Log Message:
Use macro
diffs (25 lines):
diff --git a/sql/server/rel_unnest.c b/sql/server/rel_unnest.c
--- a/sql/server/rel_unnest.c
+++ b/sql/server/rel_unnest.c
@@ -2584,12 +2584,6 @@ rewrite_rank(visitor *v, sql_rel *rel, s
return e;
}
-static bool
-exp_is_values(sql_exp *e)
-{
- return is_atom(e->type) && e->f;
-}
-
static sql_rel *
rel_union_exps(mvc *sql, sql_exp **l, list *vals, int is_tuple)
{
@@ -2627,7 +2621,7 @@ rel_union_exps(mvc *sql, sql_exp **l, li
sq->nrcols = list_length(sq->exps);
/* union a project[(values(a),..,(b),(c)] with
freevars */
if (sq->card > CARD_ATOM && rel_has_freevar(sql, sq) &&
is_project(sq->op) &&
- !sq->l && sq->nrcols == 1 &&
exp_is_values(sq->exps->h->data)) {
+ !sq->l && sq->nrcols == 1 &&
is_values((sql_exp*)sq->exps->h->data)) {
/* needs check on projection */
sql_exp *vals = sq->exps->h->data;
if (!(sq = rel_union_exps(sql, l,
exp_get_values(vals), is_tuple)))
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]