Skip to content
Snippets Groups Projects
Commit 0f67fb46 authored by Vadim B. Mikheev's avatar Vadim B. Mikheev
Browse files

Initialize internal keys if rtree used in inner scan.

parent a1157deb
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtscan.c,v 1.9 1996/11/15 18:37:10 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtscan.c,v 1.10 1997/05/20 10:29:30 vadim Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -120,6 +120,10 @@ rtrescan(IndexScanDesc s, bool fromEnd, ScanKey key) ...@@ -120,6 +120,10 @@ rtrescan(IndexScanDesc s, bool fromEnd, ScanKey key)
freestack(p->s_markstk); freestack(p->s_markstk);
p->s_stack = p->s_markstk = (RTSTACK *) NULL; p->s_stack = p->s_markstk = (RTSTACK *) NULL;
p->s_flags = 0x0; p->s_flags = 0x0;
for (i = 0; i < s->numberOfKeys; i++)
{
p->s_internalKey[i].sk_argument = s->keyData[i].sk_argument;
}
} else { } else {
/* initialize opaque data */ /* initialize opaque data */
p = (RTreeScanOpaque) palloc(sizeof(RTreeScanOpaqueData)); p = (RTreeScanOpaque) palloc(sizeof(RTreeScanOpaqueData));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment