Update of /cvsroot/monetdb/MonetDB5/src/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9903

Modified Files:
        mal_parser.mx 
Log Message:
This patch solves the assertion error raised when typing
  return();

Return is a statement modifier, to be followed by an ordinary
MAL multi-target list. The empty list is replace by a dummy
variable, which will trigger a proper warning when used.


Index: mal_parser.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal_parser.mx,v
retrieving revision 1.198
retrieving revision 1.199
diff -u -d -r1.198 -r1.199
--- mal_parser.mx       26 May 2007 11:54:09 -0000      1.198
+++ mal_parser.mx       29 May 2007 10:36:13 -0000      1.199
@@ -1443,6 +1443,11 @@
                                keyphrase1(cntxt,",");
                }
                advance(cntxt,1); /* skip ')' */
+               if( curInstr->retc == 0){
+                               /* add dummy variable */
+                               pushArgument(curBlk,curInstr, 
newTmpVariable(curBlk,TYPE_any));
+                               curInstr->retc++;
+               }
        } else { 
                /* are we dealing with a simple assignment? */
                l= idLength(cntxt);


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to