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

Modified Files:
        sql_env.mx rel_semantic.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: rel_semantic.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/rel_semantic.mx,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- rel_semantic.mx     9 Jan 2007 14:35:03 -0000       1.20
+++ rel_semantic.mx     3 May 2007 23:36:49 -0000       1.21
@@ -176,6 +176,7 @@
        case SQL_DELETE:
 
        case SQL_CREATE_FUNC:
+       case SQL_CREATE_PROC:
        case SQL_DECLARE:
        case SQL_SET:
 

Index: sql_env.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_env.mx,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- sql_env.mx  25 Mar 2007 20:46:04 -0000      1.63
+++ sql_env.mx  3 May 2007 23:36:48 -0000       1.64
@@ -155,7 +155,7 @@
 
        /* add function */
        l = list_create((fdestroy) &arg_destroy);
-       mvc_create_func(m, s, "env", l, &tpe, FALSE, FALSE, "sql", 
"sql_environment");
+       mvc_create_func(m, s, "env", l, &tpe, FALSE, FALSE, "sql", 
"sql_environment", 1);
 
        t = mvc_create_generated(m, s, "#var", NULL, 1);
        mvc_create_column_(m, t, "name", "varchar", 1024);
@@ -166,7 +166,7 @@
 
        /* add function */
        l = list_create((fdestroy) &arg_destroy);
-       mvc_create_func(m, s, "var", l, &tpe, FALSE, FALSE, "sql", 
"sql_variables");
+       mvc_create_func(m, s, "var", l, &tpe, FALSE, FALSE, "sql", 
"sql_variables", 1);
        return 0;
 }
 


-------------------------------------------------------------------------
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