Update of /cvsroot/monetdb/MonetDB5/src/modules/atoms
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv16728/src/modules/atoms
Modified Files:
Tag: MonetDB_5-2
mtime.mx
Log Message:
allow for timestamps without time part, default value for time is 00:00:00
Index: mtime.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/atoms/mtime.mx,v
retrieving revision 1.98.6.1
retrieving revision 1.98.6.2
diff -u -d -r1.98.6.1 -r1.98.6.2
--- mtime.mx 27 Oct 2007 08:18:33 -0000 1.98.6.1
+++ mtime.mx 29 Nov 2007 22:40:13 -0000 1.98.6.2
@@ -1593,13 +1593,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