Fix oversight in 013ebc0a7b commit

Declaration of varibale inside ÓÝ×Õ
pull/7/head
Teodor Sigaev 10 years ago
parent 013ebc0a7b
commit 223936e226
  1. 4
      src/backend/access/gist/gistget.c

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

Loading…
Cancel
Save