Changeset: c371224209a1 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/c371224209a1
Modified Files:
sql/server/rel_unnest.c
Branch: default
Log Message:
fix order of conditions, to make it concurrent update safe.
diffs (12 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
@@ -1179,7 +1179,7 @@ rewrite_empty_project(visitor *v, sql_re
v->changes++;
}
sql_rel *l = rel->l;
- if (l && !l->l && is_simple_project(rel->op) &&
is_simple_project(l->op) && list_length(l->exps) == 1) {
+ if (is_simple_project(rel->op) && l && is_simple_project(l->op) &&
!l->l && list_length(l->exps) == 1) {
list *exps = l->exps;
sql_exp *e = exps->h->data;
if (!e->f && exp_is_atom(e) && exp_is_true(e) &&
!exps_uses_exp(rel->exps, e) && !exps_have_rel_exp(rel->exps) &&
exps_are_atoms(rel->exps) && !exps_have_rank(rel->exps)) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]