Update of /cvsroot/monetdb/MonetDB5/src/modules/atoms
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4680/src/modules/atoms
Modified Files:
mtime.mx
Log Message:
fixed bug in mtime (incorrect return type)
fixed bug in ifthenelse on constants (properly dereference external types)
fixed crash in group.mx, if called with wrong arguments we should not crash, ie
protect against NULL result (no BAT)
finished rename of mserver -> mapi/mal_mapi
Index: mtime.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/atoms/mtime.mx,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -d -r1.105 -r1.106
--- mtime.mx 11 Jan 2008 10:41:35 -0000 1.105
+++ mtime.mx 27 Jan 2008 09:48:22 -0000 1.106
@@ -760,7 +760,7 @@
address MTIMEsql_year;
command month(months:int):int
address MTIMEsql_month;
-command day(secs:lng):int
+command day(secs:lng):lng
address MTIMEsql_day;
command hours(secs:lng):int
address MTIMEsql_hours;
@@ -986,7 +986,7 @@
mtime_export str MTIMEtimestamp_milliseconds(int *ret, timestamp *t);
mtime_export str MTIMEsql_year(int *ret, int *t);
mtime_export str MTIMEsql_month(int *ret, int *t);
-mtime_export str MTIMEsql_day(int *ret, lng *t);
+mtime_export str MTIMEsql_day(lng *ret, lng *t);
mtime_export str MTIMEsql_hours(int *ret, lng *t);
mtime_export str MTIMEsql_minutes(int *ret, lng *t);
mtime_export str MTIMEsql_seconds(int *ret, lng *t);
@@ -3840,9 +3840,9 @@
return MAL_SUCCEED;
}
str
-MTIMEsql_day(int *ret, lng *t)
+MTIMEsql_day(lng *ret, lng *t)
{
- *ret=(int)( *t/86400);
+ *ret= (*t/86400);
return MAL_SUCCEED;
}
str
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins