diff options
author | drh <drh@noemail.net> | 2011-04-01 02:26:36 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-04-01 02:26:36 +0000 |
commit | ce62d93837f5d95fd66c2827bae96a0a0e6fbf5e (patch) | |
tree | 6b671a526b9f7d20aac2df5f9aa245053d9da649 /src | |
parent | 76a32a81e400fc3b38fe70962ca7c98c70ea015c (diff) | |
download | sqlite-ce62d93837f5d95fd66c2827bae96a0a0e6fbf5e.tar.gz sqlite-ce62d93837f5d95fd66c2827bae96a0a0e6fbf5e.zip |
Fix two compiler errors associated with non-standard compile-time options.
FossilOrigin-Name: e3bf2d5ce4f87535e030a446e03d911f421805f7
Diffstat (limited to 'src')
-rw-r--r-- | src/analyze.c | 1 | ||||
-rw-r--r-- | src/where.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/analyze.c b/src/analyze.c index 22ff38822..7c31e04dd 100644 --- a/src/analyze.c +++ b/src/analyze.c @@ -124,6 +124,7 @@ static void analyzeOneTable( int regRowid = iMem++; /* Rowid for the inserted record */ #ifdef SQLITE_ENABLE_STAT2 + int addr = 0; /* Instruction address */ int regTemp2 = iMem++; /* Temporary use register */ int regSamplerecno = iMem++; /* Index of next sample to record */ int regRecno = iMem++; /* Current sample index */ diff --git a/src/where.c b/src/where.c index cdcaa98c0..5d8b8f4ad 100644 --- a/src/where.c +++ b/src/where.c @@ -2942,7 +2942,7 @@ static void bestBtreeIndex( if( nRow>(double)1 && nEq==1 && pFirstTerm!=0 ){ if( pFirstTerm->eOperator & (WO_EQ|WO_ISNULL) ){ testcase( pFirstTerm->eOperator==WO_EQ ); - testcase( pFirstTerm->pOperator==WO_ISNULL ); + testcase( pFirstTerm->eOperator==WO_ISNULL ); whereEqualScanEst(pParse, pProbe, pFirstTerm->pExpr->pRight, &nRow); }else if( pFirstTerm->eOperator==WO_IN && bInEst==0 ){ whereInScanEst(pParse, pProbe, pFirstTerm->pExpr->x.pList, &nRow); |