Changeset: e8056a95d25c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e8056a95d25c
Modified Files:
sql/backends/monet5/rel_bin.c
Branch: in-value-list
Log Message:
Make sure that null values are never selected.
diffs (19 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
@@ -375,10 +375,11 @@ handle_in_exps(backend *be, sql_exp *ce,
}
else {
// BACK TO HAPPY FLOW:
- stmt* oid_c;
- // TODO: Somehow stmt_tdiff only allows
BAT[oid] arguments hence the mirror op.
- oid_c = stmt_mirror(be, c);
- s = stmt_tdiff(be, oid_c, s);
+ stmt* non_nulls;
+
+ non_nulls = stmt_selectnonil(be, c, NULL);
+ s = stmt_tdiff(be, non_nulls, s);
+ s = stmt_project(be, s, non_nulls);
}
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list