]> granicus.if.org Git - postgresql/commitdiff
Fix oversight in 013ebc0a7b7ea9c1b1ab7a3d4dd75ea121ea8ba7 commit
authorTeodor Sigaev <teodor@sigaev.ru>
Wed, 9 Sep 2015 16:21:16 +0000 (19:21 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Wed, 9 Sep 2015 16:21:16 +0000 (19:21 +0300)
Declaration of varibale inside ÓÝ×Õ

src/backend/access/gist/gistget.c

index 473ae430dd01a4bba7eca50f2b89d8cde1a070dc..ce8e582059df97250d5f9a4c8c24d297d300e49e 100644 (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);