mirror of
https://github.com/postgres/postgres.git
synced 2026-06-11 01:30:11 -04:00
Repair swapped sign for time minus time routine (time_mi_time()).
Problem reported by Manuel Sugawara (masm@fciencias.unam.mx).
This commit is contained in:
parent
d90b5d06ba
commit
4bedbd061c
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue