Update of /cvsroot/monetdb/MonetDB5/src/modules/atoms
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1860/src/modules/atoms
Modified Files:
inet.mx
Log Message:
added inet(:str):inet and inet(:inet):inet
added comparison signatures to calc as thats were sql expects them
Index: inet.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/atoms/inet.mx,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- inet.mx 3 Jan 2007 12:20:18 -0000 1.23
+++ inet.mx 24 Oct 2007 15:46:53 -0000 1.24
@@ -913,3 +913,61 @@
}
@}
+
[EMAIL PROTECTED]
+module calc;
+
+command inet(s:inet):inet
+address INET_inet
+comment "Convert a inet to an inet";
+
[EMAIL PROTECTED]
+str
+INET_inet(inet *d, inet *s)
+{
+ *d = *s;
+ return MAL_SUCCEED;
+}
+
[EMAIL PROTECTED]
+command inet(s:str):inet
+address INET_fromstr
+comment "Convert a string to an inet";
+
[EMAIL PROTECTED]
+str
+INET_fromstr(inet *ret, str *s)
+{
+ int len = sizeof(inet);
+ INETfromString(*s, &len, &ret);
+ return MAL_SUCCEED;
+}
+
[EMAIL PROTECTED]
+command isnil(v:inet):bit
+address INET_isnil
+comment "Nil test for inet value";
+
+command =(v:inet,w:inet):bit
+address INET_comp_EQ
+comment "Equality of two inets";
+
+command !=(v:inet,w:inet):bit
+address INET_comp_NEQ
+comment "Inequality of two inets";
+
+command <(v:inet,w:inet):bit
+address INET_comp_LT
+comment "Whether v is less than w";
+
+command >(v:inet,w:inet):bit
+address INET_comp_GT
+comment "Whether v is greater than w";
+
+command <=(v:inet,w:inet):bit
+address INET_comp_LE
+comment "Whether v is less than or equal to w";
+
+command >=(v:inet,w:inet):bit
+address INET_comp_GE
+comment "Whether v is equal to or greater than w";
-------------------------------------------------------------------------
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-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins