Fix oversight in 013ebc0a7b commit

Declaration of varibale inside ÓÝ×Õ
This commit is contained in:
Teodor Sigaev 2015-09-09 19:21:16 +03:00
parent 013ebc0a7b
commit 223936e226

View File

@ -718,10 +718,12 @@ gistgettuple(PG_FUNCTION_ARGS)
/* find and process the next index page */
do
{
GISTSearchItem *item;
if ((so->curBlkno != InvalidBlockNumber) && (so->numKilled > 0))
gistkillitems(scan);
GISTSearchItem *item = getNextGISTSearchItem(so);
item = getNextGISTSearchItem(so);
if (!item)
PG_RETURN_BOOL(false);