Changeset: 5034773f87ab for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5034773f87ab
Modified Files:
        monetdb5/optimizer/opt_multiplex.c
Branch: Mar2018
Log Message:

Throw an exception when there is an error.


diffs (12 lines):

diff --git a/monetdb5/optimizer/opt_multiplex.c 
b/monetdb5/optimizer/opt_multiplex.c
--- a/monetdb5/optimizer/opt_multiplex.c
+++ b/monetdb5/optimizer/opt_multiplex.c
@@ -94,7 +94,7 @@ OPTexpandMultiplex(Client cntxt, MalBlkP
        if (alias == NULL || resB == NULL)  {
                GDKfree(alias);
                GDKfree(resB);
-               return NULL;
+               throw(MAL, "optimizer.multiplex", SQLSTATE(HY001) 
MAL_MALLOC_FAIL);
        }
 
        /* resB := new(refBat) */
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to