diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-01-11 03:33:14 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-01-11 03:33:14 +0000 |
commit | bd52f4bffdbdd7d87bab308ff2abd61fb9f2d490 (patch) | |
tree | 93e9c5627b77004e23a5e8e5f8857c9e7049666d /src/backend/access/common/indextuple.c | |
parent | aadd14b8f29ea2e29ccbb8fbda8eccdb8cff8fc2 (diff) | |
download | postgresql-bd52f4bffdbdd7d87bab308ff2abd61fb9f2d490.tar.gz postgresql-bd52f4bffdbdd7d87bab308ff2abd61fb9f2d490.zip |
More cleanups. Still doesn't work.
Diffstat (limited to 'src/backend/access/common/indextuple.c')
-rw-r--r-- | src/backend/access/common/indextuple.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/access/common/indextuple.c b/src/backend/access/common/indextuple.c index 77d878591d2..9a096e8930b 100644 --- a/src/backend/access/common/indextuple.c +++ b/src/backend/access/common/indextuple.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.39 1999/10/23 03:13:20 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.40 2000/01/11 03:33:11 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -44,9 +44,8 @@ index_formtuple(TupleDesc tupleDescriptor, uint16 tupmask = 0; int numberOfAttributes = tupleDescriptor->natts; - /* XXX shouldn't this test be '>' ? */ - if (numberOfAttributes >= INDEX_MAX_KEYS) - elog(ERROR, "index_formtuple: numberOfAttributes %d >= %d", + if (numberOfAttributes > INDEX_MAX_KEYS) + elog(ERROR, "index_formtuple: numberOfAttributes %d > %d", numberOfAttributes, INDEX_MAX_KEYS); for (i = 0; i < numberOfAttributes && !hasnull; i++) |