Commit 1c9a1250 authored by Bruce Momjian's avatar Bruce Momjian

OR processing cleanup.

parent f26e1d39
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.22 1998/08/03 19:41:29 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.23 1998/08/04 18:42:38 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -269,9 +269,11 @@ ExecIndexReScan(IndexScan *node, ExprContext *exprCtxt, Plan *parent) ...@@ -269,9 +269,11 @@ ExecIndexReScan(IndexScan *node, ExprContext *exprCtxt, Plan *parent)
{ {
qual = nth(i, indxqual); qual = nth(i, indxqual);
n_keys = numScanKeys[i]; n_keys = numScanKeys[i];
run_keys = (int *) runtimeKeyInfo[i];
scan_keys = (ScanKey) scanKeys[i]; scan_keys = (ScanKey) scanKeys[i];
if (runtimeKeyInfo)
{
run_keys = (int *) runtimeKeyInfo[i];
for (j = 0; j < n_keys; j++) for (j = 0; j < n_keys; j++)
{ {
/* /*
...@@ -298,6 +300,7 @@ ExecIndexReScan(IndexScan *node, ExprContext *exprCtxt, Plan *parent) ...@@ -298,6 +300,7 @@ ExecIndexReScan(IndexScan *node, ExprContext *exprCtxt, Plan *parent)
scan_keys[j].sk_flags &= ~SK_ISNULL; scan_keys[j].sk_flags &= ~SK_ISNULL;
} }
} }
}
sdesc = scanDescs[i]; sdesc = scanDescs[i];
skey = scanKeys[i]; skey = scanKeys[i];
index_rescan(sdesc, direction, skey); index_rescan(sdesc, direction, skey);
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment