diff --git a/doc/TODO b/doc/TODO index 2f6cde4d2b36317bc5b7e7bb97c0d0ae08541fab..a7f0c6f68b098a8ed61691f56c3ed7a940255d50 100644 --- a/doc/TODO +++ b/doc/TODO @@ -1,6 +1,6 @@ TODO list for PostgreSQL ======================== -Last updated: Thu Jan 27 23:46:41 EST 2000 +Last updated: Thu Jan 27 23:55:43 EST 2000 Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us) diff --git a/src/backend/access/nbtree/nbtcompare.c b/src/backend/access/nbtree/nbtcompare.c index 5d4841ebaaa73e5cac8ccbf5130a371062b4d7ed..8cb9d0d9ae255b35a30ba934f710d3c6b84d60ec 100644 --- a/src/backend/access/nbtree/nbtcompare.c +++ b/src/backend/access/nbtree/nbtcompare.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.31 2000/01/26 05:55:58 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.32 2000/01/28 17:23:47 momjian Exp $ * * NOTES * These functions are stored in pg_amproc. For each operator class @@ -35,7 +35,12 @@ btint2cmp(int16 a, int16 b) int32 btint4cmp(int32 a, int32 b) { - return a - b; + if (a > b) + return 1; + else if (a == b) + return 0; + else + return -1; } int32