1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Fix an always-true conditional left over from the previous commit.

FossilOrigin-Name: ab12fce3318db447995e1465f34a1e43cd623d6a
This commit is contained in:
drh
2016-09-30 21:20:37 +00:00
parent 9b40d13f43
commit 94881d732b
3 changed files with 8 additions and 8 deletions

View File

@@ -3176,7 +3176,7 @@ int sqlite3ExprCodeGetColumn(
struct yColCache *p;
for(i=0, p=pParse->aColCache; i<pParse->nColCache; i++, p++){
if( p->iReg>0 && p->iTable==iTable && p->iColumn==iColumn ){
if( p->iTable==iTable && p->iColumn==iColumn ){
p->lru = pParse->iCacheCnt++;
sqlite3ExprCachePinRegister(pParse, p->iReg);
return p->iReg;