Update of /cvsroot/monetdb/sql/src/server
In directory sc8-pr-cvs16:/tmp/cvs-serv944

Modified Files:
        sql_parser.mx 
Log Message:
All the features supported for functions are now supported for procedures. 
However, procedure and functions differ in two aspects (well, maybe one):
Procedure do not have return type and no return statements in their 
runtime_body.

A new field to the struct sql_func was added to simply the distinguish between t
hem and also to help in the dependencies check.



Index: sql_parser.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_parser.mx,v
retrieving revision 1.243
retrieving revision 1.244
diff -u -d -r1.243 -r1.244
--- sql_parser.mx       1 May 2007 22:03:09 -0000       1.243
+++ sql_parser.mx       3 May 2007 23:34:58 -0000       1.244
@@ -40,6 +40,7 @@
        SQL_CREATE_ROLE,
        SQL_CREATE_USER,
        SQL_CREATE_TYPE,
+       SQL_CREATE_PROC,
        SQL_CREATE_FUNC,
        SQL_CREATE_SEQ,
        SQL_CREATE_TRIGGER,
@@ -1723,7 +1724,7 @@
                                append_symbol(f, NULL); /* no result */
                                append_string(f, NULL); /* no mil-impl */
                                append_list(f, $7);
-                         $$ = _symbol_create_list( SQL_CREATE_FUNC, f ); }
+                         $$ = _symbol_create_list( SQL_CREATE_PROC, f ); }
  ;
 
 routine_body:


-------------------------------------------------------------------------
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-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to