Update of /cvsroot/monetdb/MonetDB4/src/modules/plain
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv16681/src/modules/plain

Modified Files:
      Tag: MonetDB_4-20
        monettime.mx 
Log Message:
allow for timestamps without time part, default value for time is 00:00:00 




Index: monettime.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB4/src/modules/plain/monettime.mx,v
retrieving revision 1.5
retrieving revision 1.5.4.1
diff -u -d -r1.5 -r1.5.4.1
--- monettime.mx        9 Jul 2007 08:44:36 -0000       1.5
+++ monettime.mx        29 Nov 2007 22:38:44 -0000      1.5.4.1
@@ -1290,13 +1290,14 @@
        }
        d = &(*ret)->days;
        t = &(*ret)->msecs;
+       (*ret)->msecs = 0;
        s += date_fromstr(buf, len, &d);
        if (s > buf && (*(s) == '@' || *s == ' ' || *s == '-')) {
                while (*(++s) == ' ')
                        ;
                pos = daytime_fromstr(s, len, &t);
                s = pos ? s + pos : buf;
-       } else {
+       } else if (!s || *s) {
                (*ret)->msecs = daytime_nil;
        }
        if (s <= buf || (*ret)->days == date_nil || (*ret)->msecs == 
daytime_nil) {


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to