diff options
author | drh <drh@noemail.net> | 2020-09-28 15:49:43 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2020-09-28 15:49:43 +0000 |
commit | 75fa266341f5f7ae87c34a153c7db990d63ccfd4 (patch) | |
tree | d780da10d1c29a9a64f7d654b96b1daea6ab0d34 /src/wherecode.c | |
parent | f573b4fb94e5f40143916b72f1a42c1b1f3a72ee (diff) | |
download | sqlite-75fa266341f5f7ae87c34a153c7db990d63ccfd4.tar.gz sqlite-75fa266341f5f7ae87c34a153c7db990d63ccfd4.zip |
Small performance improvement and size reduction by reducing the size of
the WhereTerm object.
FossilOrigin-Name: 43f7ddad800acf40917c5cc3d926640dbec17c34d5f1cbbb74bd80f44eeed0a5
Diffstat (limited to 'src/wherecode.c')
-rw-r--r-- | src/wherecode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wherecode.c b/src/wherecode.c index ae3a19757..e3310b314 100644 --- a/src/wherecode.c +++ b/src/wherecode.c @@ -427,7 +427,7 @@ static Expr *removeUnindexableInClauseTerms( for(i=iEq; i<pLoop->nLTerm; i++){ if( pLoop->aLTerm[i]->pExpr==pX ){ - int iField = pLoop->aLTerm[i]->iField - 1; + int iField = pLoop->aLTerm[i]->u.x.iField - 1; if( pOrigRhs->a[iField].pExpr==0 ) continue; /* Duplicate PK column */ pRhs = sqlite3ExprListAppend(pParse, pRhs, pOrigRhs->a[iField].pExpr); pOrigRhs->a[iField].pExpr = 0; @@ -2414,7 +2414,7 @@ Bitmask sqlite3WhereCodeOneLoopStart( #endif assert( !ExprHasProperty(pE, EP_FromJoin) ); assert( (pTerm->prereqRight & pLevel->notReady)!=0 ); - pAlt = sqlite3WhereFindTerm(pWC, iCur, pTerm->u.leftColumn, notReady, + pAlt = sqlite3WhereFindTerm(pWC, iCur, pTerm->u.x.leftColumn, notReady, WO_EQ|WO_IN|WO_IS, 0); if( pAlt==0 ) continue; if( pAlt->wtFlags & (TERM_CODED) ) continue; |