Changeset: c54581774a5e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c54581774a5e
Modified Files:
        monetdb5/optimizer/opt_wrapper.c
Branch: default
Log Message:

Raise an exception when the optimizer can not be found


diffs (15 lines):

diff --git a/monetdb5/optimizer/opt_wrapper.c b/monetdb5/optimizer/opt_wrapper.c
--- a/monetdb5/optimizer/opt_wrapper.c
+++ b/monetdb5/optimizer/opt_wrapper.c
@@ -176,6 +176,11 @@ str OPTwrapper (Client cntxt, MalBlkPtr 
                actions = (int)(*(codes[i].fcn))(cntxt, mb, stk,0);
                break;  
        }
+       if ( codes[i].nme == 0){
+               char buf[1024];
+               snprintf(buf,1024, "%s.%s",modnme,fcnnme);
+               throw(MAL, optimizer, RUNTIME_OBJECT_UNDEFINED ":%s", buf);
+       }
 
        msg= optimizerCheck(cntxt, mb, optimizer, actions, t=(GDKusec() - 
clk),OPT_CHECK_ALL);
        OPTIMIZERDEBUG {
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to