Changeset: b08c82c423f1 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b08c82c423f1
Modified Files:
monetdb5/optimizer/opt_support.c
Branch: default
Log Message:
Add optimizer defense line
Before the optimizer pipeline starts, make a thorough check
on the legimity of the MAL block.
diffs (15 lines):
diff --git a/monetdb5/optimizer/opt_support.c b/monetdb5/optimizer/opt_support.c
--- a/monetdb5/optimizer/opt_support.c
+++ b/monetdb5/optimizer/opt_support.c
@@ -250,6 +250,11 @@ optimizeMALBlock(Client cntxt, MalBlkPtr
if ( mb->inlineProp)
return 0;
+ /* force at least once a complete type check by resetting the type
check flag */
+ resetMalBlk(mb,mb->stop);
+ chkTypes(cntxt->fdout, cntxt->nspace, mb, TRUE);
+ chkFlow(cntxt->fdout, mb);
+ chkDeclarations(cntxt->fdout, mb);
do {
/* any errors should abort the optimizer */
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list