diff options
author | drh <drh@noemail.net> | 2016-09-30 20:22:27 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-09-30 20:22:27 +0000 |
commit | 9b40d13f437429abae07b4e03fd18647696c98e4 (patch) | |
tree | 6a59bc8370f15a44eb9bc19aeba54b16fad74d0c /src/vdbeaux.c | |
parent | e05950d8788b721565043405f26afa3e0a8fdf5c (diff) | |
download | sqlite-9b40d13f437429abae07b4e03fd18647696c98e4.tar.gz sqlite-9b40d13f437429abae07b4e03fd18647696c98e4.zip |
Fix the Parse.aColCache column cache so that all of the valid entries are
in the first Parse.nColCache slots.
FossilOrigin-Name: 6028502059ccbd3699637b7a70a6d8ce1b7c3dad
Diffstat (limited to 'src/vdbeaux.c')
-rw-r--r-- | src/vdbeaux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c index 2e3a4eaaf..86f5096a8 100644 --- a/src/vdbeaux.c +++ b/src/vdbeaux.c @@ -184,9 +184,8 @@ int sqlite3VdbeAddOp3(Vdbe *p, int op, int p1, int p2, int p3){ if( p->db->flags & SQLITE_VdbeAddopTrace ){ int jj, kk; Parse *pParse = p->pParse; - for(jj=kk=0; jj<SQLITE_N_COLCACHE; jj++){ + for(jj=kk=0; jj<pParse->nColCache; jj++){ struct yColCache *x = pParse->aColCache + jj; - if( x->iLevel>pParse->iCacheLevel || x->iReg==0 ) continue; printf(" r[%d]={%d:%d}", x->iReg, x->iTable, x->iColumn); kk++; } |