mirror of https://github.com/postgres/postgres
Patch from Hiroshi for overflow btree comparison.
This commit is contained in:
parent
3f6ff32972
commit
1380921e65
2
doc/TODO
2
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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue