Skip to content

Commit 72b523d

Browse files
committed
_bt_endpoint fixed: set currentItemData to Invalid if no result.
1 parent cd7206b commit 72b523d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/access/nbtree/nbtsearch.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtsearch.c,v 1.17 1997/04/16 01:48:17 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtsearch.c,v 1.18 1997/04/24 15:46:44 vadim Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1353,6 +1353,8 @@ _bt_endpoint(IndexScanDesc scan, ScanDirection dir)
13531353
}
13541354
else
13551355
{
1356+
ItemPointerSetInvalid(current);
1357+
so->btso_curbuf = InvalidBuffer;
13561358
_bt_relbuf(rel, buf, BT_READ);
13571359
res = (RetrieveIndexResult) NULL;
13581360
}

0 commit comments

Comments
 (0)