Update of /cvsroot/monetdb/sql/src/sql
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26903

Modified Files:
        Makefile.ag 
Added Files:
        inet.sql 
Log Message:
Add first try out for getting the inet module available in SQL.  Preliminary 
testing wasn't too bad (normal segfaults).  I didn't add the comparison 
functions, which are the most important of the entire module, as I didn't know 
how to do that.

Index: Makefile.ag
===================================================================
RCS file: /cvsroot/monetdb/sql/src/sql/Makefile.ag,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- Makefile.ag 12 Sep 2007 10:58:15 -0000      1.6
+++ Makefile.ag 24 Oct 2007 13:22:17 -0000      1.7
@@ -19,6 +19,6 @@
        DIR = datadir/MonetDB/sql
        SOURCES = \
                bbp.sql stats.sql cache.sql math.sql \
-               mtime.sql url.sql \
+               mtime.sql url.sql inet.sql \
                dependency_functions.sql ms_functions.sql
 }

--- NEW FILE: inet.sql ---

CREATE TYPE inet EXTERNAL NAME inet;

CREATE FUNCTION "broadcast" (p inet) RETURNS inet 
        EXTERNAL NAME inet."broadcast";
CREATE FUNCTION "host" (p inet) RETURNS clob
        EXTERNAL NAME inet."host";
CREATE FUNCTION "masklen" (p inet) RETURNS int
        EXTERNAL NAME inet."masklen";
CREATE FUNCTION "setmasklen" (p inet, mask int) RETURNS inet
        EXTERNAL NAME inet."setmasklen";
CREATE FUNCTION "netmask" (p inet) RETURNS inet
        EXTERNAL NAME inet."netmask";
CREATE FUNCTION "hostmask" (p inet) RETURNS inet
        EXTERNAL NAME inet."hostmask";
CREATE FUNCTION "network" (p inet) RETURNS inet
        EXTERNAL NAME inet."network";
CREATE FUNCTION "text" (p inet) RETURNS clob
        EXTERNAL NAME inet."text";
CREATE FUNCTION "abbrev" (p inet) RETURNS clob
        EXTERNAL NAME inet."abbrev";


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to