Changeset: 2dd2f541f9b1 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2dd2f541f9b1 Modified Files: sql/server/rel_optimizer.c Branch: default Log Message:
protect against nil/null in exp_range_overlap diffs (16 lines): diff --git a/sql/server/rel_optimizer.c b/sql/server/rel_optimizer.c --- a/sql/server/rel_optimizer.c +++ b/sql/server/rel_optimizer.c @@ -6868,6 +6868,12 @@ exp_range_overlap( mvc *sql, sql_exp *e, if (!min || !max || !emin || !emax) return 0; + + if (strcmp("nil", (char*)min) == 0) + return 0; + if (strcmp("nil", (char*)max) == 0) + return 0; + if (t->type->localtype == TYPE_dbl) { atom *cmin = atom_general(sql->sa, t, min); atom *cmax = atom_general(sql->sa, t, max); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list