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

Modified Files:
        sql_catalog.h 
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_catalog.h
===================================================================
RCS file: /cvsroot/monetdb/sql/src/include/sql_catalog.h,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- sql_catalog.h       28 Apr 2007 11:17:24 -0000      1.47
+++ sql_catalog.h       3 May 2007 23:29:58 -0000       1.48
@@ -53,7 +53,8 @@
 #define INDEX_DEPENDENCY 10
 #define FKEY_DEPENDENCY 11
 #define TYPE_DEPENDENCY 11
-#define SEQ_DEPENDENCY 11
+#define SEQ_DEPENDENCY 12
+#define PROC_DEPENDENCY 13
 #define NO_DEPENDENCY 0
 #define HAS_DEPENDENCY 1
 #define CICLE_DEPENDENCY 2
@@ -229,6 +230,7 @@
           example string concat
         */
        int nr;
+       int is_func;
        int sql;                /* 0 native implementation
                                   1 sql 
                                   2 sql instantiated proc 
@@ -515,7 +517,7 @@
 
 extern node *find_sql_func_node(sql_schema * s, char *tname, int id);
 extern sql_func *find_sql_func(sql_schema * s, char *tname);
-extern list *find_all_sql_func(sql_schema * s, char *tname);
+extern list *find_all_sql_func(sql_schema * s, char *tname, int is_func);
 extern sql_func *sql_trans_bind_func(sql_trans *tr, char *name);
 
 #endif /* SQL_CATALOG_H */


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