Changeset: 15ffdb33041d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=15ffdb33041d
Modified Files:
monetdb5/modules/atoms/mtime.c
Branch: mtime
Log Message:
Do subtraction in the expected order.
diffs (12 lines):
diff --git a/monetdb5/modules/atoms/mtime.c b/monetdb5/modules/atoms/mtime.c
--- a/monetdb5/modules/atoms/mtime.c
+++ b/monetdb5/modules/atoms/mtime.c
@@ -357,7 +357,7 @@ date_addmonth(date dt, int months)
static inline lng
timestamp_diff(timestamp v1, timestamp v2)
{
- return ts_time(v2) - ts_time(v1) + DAY_USEC * date_diff(ts_date(v2),
ts_date(v1));
+ return ts_time(v1) - ts_time(v2) + DAY_USEC * date_diff(ts_date(v1),
ts_date(v2));
}
timestamp
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list