Changeset: d314d1698740 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d314d1698740
Modified Files:
sql/server/rel_optimize_sel.c
Branch: cmp-or-patterns
Log Message:
small fix for expressions without relational names.
diffs (15 lines):
diff --git a/sql/server/rel_optimize_sel.c b/sql/server/rel_optimize_sel.c
--- a/sql/server/rel_optimize_sel.c
+++ b/sql/server/rel_optimize_sel.c
@@ -608,7 +608,10 @@ detect_multicol_cmp_eqs(mvc *sql, list *
char *cs = "";
for (node *m = sl->h; m; m = m->next) {
sql_exp *col_exp = ((sql_exp*)m->data)->l;
- cs = strconcat(cs, strconcat(col_exp->alias.rname,
col_exp->alias.name));
+ if (col_exp->alias.rname)
+ cs = strconcat(cs,
strconcat(col_exp->alias.rname, col_exp->alias.name));
+ else
+ cs = strconcat(cs, col_exp->alias.name);
}
/* find the eq exp in the hash and append the values */
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]