Skip to content
Snippets Groups Projects
Commit 8fd08988 authored by Vadim B. Mikheev's avatar Vadim B. Mikheev
Browse files

Fix time_cmp

parent ed118276
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.11 1997/08/19 21:34:32 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.12 1997/08/28 05:06:29 vadim Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -551,7 +551,7 @@ time_ge(TimeADT *time1, TimeADT *time2) ...@@ -551,7 +551,7 @@ time_ge(TimeADT *time1, TimeADT *time2)
int int
time_cmp(TimeADT *time1, TimeADT *time2) time_cmp(TimeADT *time1, TimeADT *time2)
{ {
return((*time1 < *time2)? -1: (((*time1 < *time2)? 1: 0))); return((*time1 < *time2)? -1: (((*time1 > *time2)? 1: 0)));
} /* time_cmp() */ } /* time_cmp() */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment