aboutsummaryrefslogtreecommitdiff
path: root/src/where.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-12-31 18:30:41 +0000
committerdrh <drh@noemail.net>2018-12-31 18:30:41 +0000
commit0de6efe59ee54518f2590d7d5eb8f55a374b9811 (patch)
treea720aa0e01fc709c840a8ddfcebc500bb67d15c2 /src/where.c
parent01e92df41ef05b7ec1807beccc697fd521abc584 (diff)
parentd0fb7960cea5d26a40a0a7ca00c4274545e96efe (diff)
downloadsqlite-0de6efe59ee54518f2590d7d5eb8f55a374b9811.tar.gz
sqlite-0de6efe59ee54518f2590d7d5eb8f55a374b9811.zip
Merge enhancements and bug fixes from trunk.
FossilOrigin-Name: 9fb646f29c05bca5f677a2c7c4f45c36bfe0a0c6a88cb7968b4a0459bdd63bb2
Diffstat (limited to 'src/where.c')
-rw-r--r--src/where.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/where.c b/src/where.c
index 17b886b2c..9c0192747 100644
--- a/src/where.c
+++ b/src/where.c
@@ -837,7 +837,7 @@ static void constructAutomaticIndex(
addrTop = sqlite3VdbeAddOp1(v, OP_Rewind, pLevel->iTabCur); VdbeCoverage(v);
}
if( pPartial ){
- iContinue = sqlite3VdbeMakeLabel(v);
+ iContinue = sqlite3VdbeMakeLabel(pParse);
sqlite3ExprIfFalse(pParse, pPartial, iContinue, SQLITE_JUMPIFNULL);
pLoop->wsFlags |= WHERE_PARTIALIDX;
}
@@ -4644,7 +4644,7 @@ WhereInfo *sqlite3WhereBegin(
pWInfo->pResultSet = pResultSet;
pWInfo->aiCurOnePass[0] = pWInfo->aiCurOnePass[1] = -1;
pWInfo->nLevel = nTabList;
- pWInfo->iBreak = pWInfo->iContinue = sqlite3VdbeMakeLabel(v);
+ pWInfo->iBreak = pWInfo->iContinue = sqlite3VdbeMakeLabel(pParse);
pWInfo->wctrlFlags = wctrlFlags;
pWInfo->iLimit = iAuxArg;
pWInfo->savedNQueryLoop = pParse->nQueryLoop;