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

Commit c56b20e

Browse files
committed
Fix btabstimecmp ().
1 parent ee0a61a commit c56b20e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/access/nbtree/nbtcompare.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.6 1996/11/10 02:58:37 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.7 1997/04/07 06:45:41 vadim Exp $
1111
*
1212
* NOTES
1313
* These functions are stored in pg_amproc. For each operator class
@@ -88,9 +88,9 @@ int32
8888
btabstimecmp(AbsoluteTime a, AbsoluteTime b)
8989
{
9090
if (AbsoluteTimeIsBefore(a, b))
91-
return (1);
92-
else if (AbsoluteTimeIsBefore(b, a))
9391
return (-1);
92+
else if (AbsoluteTimeIsBefore(b, a))
93+
return (1);
9494
else
9595
return (0);
9696
}

0 commit comments

Comments
 (0)