Skip to content

Commit 4bedbd0

Browse files
author
Thomas G. Lockhart
committed
Repair swapped sign for time minus time routine (time_mi_time()).
Problem reported by Manuel Sugawara (masm@fciencias.unam.mx).
1 parent d90b5d0 commit 4bedbd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/date.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.63 2001/10/25 05:49:43 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.64 2001/11/21 05:57:33 thomas Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -813,7 +813,7 @@ time_mi_time(PG_FUNCTION_ARGS)
813813

814814
result = (Interval *) palloc(sizeof(Interval));
815815

816-
result->time = time2 - time1;
816+
result->time = time1 - time2;
817817
result->month = 0;
818818

819819
PG_RETURN_INTERVAL_P(result);

0 commit comments

Comments
 (0)