Changeset: f07f4d2d6802 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/f07f4d2d6802
Modified Files:
sql/server/rel_optimizer.c
Branch: default
Log Message:
A check I forgot
diffs (13 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
@@ -8694,8 +8694,7 @@ merge_table_prune_and_unionize(visitor *
/* check if the part
falls within the bounds of the select expression else skip this (keep at least
on part-table) */
if (!cmin && !cmax &&
first_attempt) {
char *min =
NULL, *max = NULL;
- (void)
sql_trans_ranges(v->sql->session->tr, col, &min, &max);
- if (min && max)
{
+ if
(sql_trans_ranges(v->sql->session->tr, col, &min, &max) && min && max) {
cmin =
atom_general(v->sql->sa, &col->type, min);
cmax =
atom_general(v->sql->sa, &col->type, max);
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list