Patch from Hiroshi for overflow btree comparison.

This commit is contained in:
Bruce Momjian 2000-01-28 17:23:47 +00:00
parent 3f6ff32972
commit 1380921e65
2 changed files with 8 additions and 3 deletions

View File

@ -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)

View File

@ -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