Changeset: aa675cc447d9 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=aa675cc447d9
Modified Files:
monetdb5/optimizer/opt_pushselect.c
Branch: default
Log Message:
add some protection against missing statements
diffs (12 lines):
diff --git a/monetdb5/optimizer/opt_pushselect.c
b/monetdb5/optimizer/opt_pushselect.c
--- a/monetdb5/optimizer/opt_pushselect.c
+++ b/monetdb5/optimizer/opt_pushselect.c
@@ -481,7 +481,7 @@ OPTpushselectImplementation(Client cntxt
if (isSlice(p) && p->retc == 1) {
int var = getArg(p, 1);
InstrPtr q = old[vars[var]];
- if (getModuleId(q) == sqlRef && getFunctionId(q) ==
projectdeltaRef) {
+ if (q && getModuleId(q) == sqlRef && getFunctionId(q)
== projectdeltaRef) {
InstrPtr r = copyInstruction(p);
InstrPtr s = copyInstruction(q);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list