Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8fd0898

Browse files
committed
Fix time_cmp
1 parent ed11827 commit 8fd0898

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/datetime.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.11 1997/08/19 21:34:32 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.12 1997/08/28 05:06:29 vadim Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -551,7 +551,7 @@ time_ge(TimeADT *time1, TimeADT *time2)
551551
int
552552
time_cmp(TimeADT *time1, TimeADT *time2)
553553
{
554-
return((*time1 < *time2)? -1: (((*time1 < *time2)? 1: 0)));
554+
return((*time1 < *time2)? -1: (((*time1 > *time2)? 1: 0)));
555555
} /* time_cmp() */
556556

557557

0 commit comments

Comments
 (0)