Changeset: dcf2f691dae5 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=dcf2f691dae5 Modified Files: sql/server/rel_select.c Branch: scoping Log Message:
Simplify diffs (18 lines): diff --git a/sql/server/rel_select.c b/sql/server/rel_select.c --- a/sql/server/rel_select.c +++ b/sql/server/rel_select.c @@ -1158,11 +1158,9 @@ rel_column_ref(sql_query *query, sql_rel } if (!exp) { /* If no column was found, try a variable */ sql_schema *s = cur_schema(sql); - if (s) { - int var = stack_find_var(sql, s, name); /* find one */ - if (var) - return rel_var_ref(sql, s->base.name, name); - } + int var = stack_find_var(sql, s, name); /* find one */ + if (var) + return rel_var_ref(sql, s->base.name, name); } if (!exp) _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list