diff options
author | drh <drh@noemail.net> | 2011-12-10 14:44:31 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-12-10 14:44:31 +0000 |
commit | a5eec8c8c3b44b802d6571a436ec3b3bffd69f4c (patch) | |
tree | bc1364df96b88de63e0ba83a3b05df2c233add73 /src/where.c | |
parent | 4e2a9c32721086d5f73f84c075c9883018038b89 (diff) | |
parent | 3a0c9c0298776f8a3ca842fe555979768fdabac7 (diff) | |
download | sqlite-a5eec8c8c3b44b802d6571a436ec3b3bffd69f4c.tar.gz sqlite-a5eec8c8c3b44b802d6571a436ec3b3bffd69f4c.zip |
Merge the latest trunk changes into tree-explain branch.
FossilOrigin-Name: 1a360da0f8314f232c224c71829646bc7558892b
Diffstat (limited to 'src/where.c')
-rw-r--r-- | src/where.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/where.c b/src/where.c index a604d788c..78efbf979 100644 --- a/src/where.c +++ b/src/where.c @@ -2005,7 +2005,6 @@ static void constructAutomaticIndex( int nByte; /* Byte of memory needed for pIdx */ Index *pIdx; /* Object describing the transient index */ Vdbe *v; /* Prepared statement under construction */ - int regIsInit; /* Register set by initialization */ int addrInit; /* Address of the initialization bypass jump */ Table *pTable; /* The table being indexed */ KeyInfo *pKeyinfo; /* Key information for the index */ @@ -2022,8 +2021,7 @@ static void constructAutomaticIndex( ** transient index on 2nd and subsequent iterations of the loop. */ v = pParse->pVdbe; assert( v!=0 ); - regIsInit = ++pParse->nMem; - addrInit = sqlite3VdbeAddOp1(v, OP_Once, regIsInit); + addrInit = sqlite3CodeOnce(pParse); /* Count the number of columns that will be added to the index ** and used to match WHERE clause constraints */ |