Commit 14ed5b3e authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

Someone forgot about 'case sizeof(int32)' for

tupleDesc->attrs[i]->attlen in fastgetiattr.
parent 64c82a50
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.12 1996/11/05 07:42:42 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.13 1997/03/26 02:24:38 vadim Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -329,6 +329,9 @@ fastgetiattr(IndexTuple tup, ...@@ -329,6 +329,9 @@ fastgetiattr(IndexTuple tup,
case sizeof(short): case sizeof(short):
off = SHORTALIGN(off) + sizeof(short); off = SHORTALIGN(off) + sizeof(short);
break; break;
case sizeof(int32):
off = INTALIGN(off) + sizeof(int32);
break;
case -1: case -1:
usecache = false; usecache = false;
off = (tupleDesc->attrs[i]->attalign=='d')? off = (tupleDesc->attrs[i]->attalign=='d')?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment