diff options
author | drh <drh@noemail.net> | 2013-06-11 13:30:04 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-06-11 13:30:04 +0000 |
commit | 8e23daf372c57084e7921e48c1b7968b631bb94d (patch) | |
tree | ca19add163193236f59050dcafe186f8e7f1e7e7 /src/expr.c | |
parent | 8b76656ad4cf13b4a716fa208bbc1433b21fd606 (diff) | |
download | sqlite-8e23daf372c57084e7921e48c1b7968b631bb94d.tar.gz sqlite-8e23daf372c57084e7921e48c1b7968b631bb94d.zip |
Fix the Parse.nQueryLoop state variable to work with NGQP.
FossilOrigin-Name: f1cac24f06b9c71cfa472fdcf2da4cd8689a7cc3
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/expr.c b/src/expr.c index c1a27ebf8..4e834ffe8 100644 --- a/src/expr.c +++ b/src/expr.c @@ -1596,15 +1596,15 @@ int sqlite3FindInIndex(Parse *pParse, Expr *pX, int *prNotFound){ /* Could not found an existing table or index to use as the RHS b-tree. ** We will have to generate an ephemeral table to do the job. */ - double savedNQueryLoop = pParse->nQueryLoop; + u32 savedNQueryLoop = pParse->nQueryLoop; int rMayHaveNull = 0; eType = IN_INDEX_EPH; if( prNotFound ){ *prNotFound = rMayHaveNull = ++pParse->nMem; sqlite3VdbeAddOp2(v, OP_Null, 0, *prNotFound); }else{ - testcase( pParse->nQueryLoop>(double)1 ); - pParse->nQueryLoop = (double)1; + testcase( pParse->nQueryLoop>1 ); + pParse->nQueryLoop = 1; if( pX->pLeft->iColumn<0 && !ExprHasAnyProperty(pX, EP_xIsSelect) ){ eType = IN_INDEX_ROWID; } |