Changeset: a37a3438d51e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/a37a3438d51e
Modified Files:
sql/backends/monet5/rel_bin.c
Branch: default
Log Message:
fixed crash in casewhen handling, solves bug #7459
diffs (15 lines):
diff --git a/sql/backends/monet5/rel_bin.c b/sql/backends/monet5/rel_bin.c
--- a/sql/backends/monet5/rel_bin.c
+++ b/sql/backends/monet5/rel_bin.c
@@ -918,8 +918,10 @@ exp2bin_casewhen(backend *be, sql_exp *f
return NULL;
if (!single_value && !case_when->nrcols) {
stmt *l = isel;
- if (!l)
+ if (!l && left)
l = bin_find_smallest_column(be, left);
+ else if (!l)
+ return NULL;
case_when = stmt_const(be, l, case_when);
if (case_when)
case_when->cand = isel;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]