提交 1380921e 编写于 作者: B Bruce Momjian

Patch from Hiroshi for overflow btree comparison.

上级 3f6ff329
TODO list for PostgreSQL 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) Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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 * NOTES
* These functions are stored in pg_amproc. For each operator class * These functions are stored in pg_amproc. For each operator class
...@@ -35,7 +35,12 @@ btint2cmp(int16 a, int16 b) ...@@ -35,7 +35,12 @@ btint2cmp(int16 a, int16 b)
int32 int32
btint4cmp(int32 a, int32 b) btint4cmp(int32 a, int32 b)
{ {
return a - b; if (a > b)
return 1;
else if (a == b)
return 0;
else
return -1;
} }
int32 int32
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册