From: Thomas G. Lockhart Date: Wed, 21 Nov 2001 05:57:33 +0000 (+0000) Subject: Repair swapped sign for time minus time routine (time_mi_time()). X-Git-Tag: REL7_2_BETA4~215 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4bedbd061c9711ccb7e37c791674914a97a00e6c;p=postgresql Repair swapped sign for time minus time routine (time_mi_time()). Problem reported by Manuel Sugawara (masm@fciencias.unam.mx). --- diff --git a/src/backend/utils/adt/date.c b/src/backend/utils/adt/date.c index 8fb2bbad29..044c310fbe 100644 --- a/src/backend/utils/adt/date.c +++ b/src/backend/utils/adt/date.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.63 2001/10/25 05:49:43 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.64 2001/11/21 05:57:33 thomas Exp $ * *------------------------------------------------------------------------- */ @@ -813,7 +813,7 @@ time_mi_time(PG_FUNCTION_ARGS) result = (Interval *) palloc(sizeof(Interval)); - result->time = time2 - time1; + result->time = time1 - time2; result->month = 0; PG_RETURN_INTERVAL_P(result);