diff options
author | dan <dan@noemail.net> | 2009-10-19 18:11:09 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2009-10-19 18:11:09 +0000 |
commit | 1d2ce4f80422b0d8720817b057f834102e1738e3 (patch) | |
tree | 0242dfefd86f20e21877d9d9d037c5a3140cb0b6 /src/where.c | |
parent | f7b0b0ad5fb083c194f0f69e75747dccf71427ed (diff) | |
download | sqlite-1d2ce4f80422b0d8720817b057f834102e1738e3.tar.gz sqlite-1d2ce4f80422b0d8720817b057f834102e1738e3.zip |
Remove the sqlite3_reoptimize() API. The same functionality is now provided automatically to queries prepared using prepare_v2().
FossilOrigin-Name: 2c50b3d5aab7cd8cc841d61f8c3b2b34d2f0b54b
Diffstat (limited to 'src/where.c')
-rw-r--r-- | src/where.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/where.c b/src/where.c index 53ec26b84..f9cb07570 100644 --- a/src/where.c +++ b/src/where.c @@ -671,7 +671,7 @@ static int isLikeOrGlob( if( pVal && sqlite3_value_type(pVal)==SQLITE_TEXT ){ z = (char *)sqlite3_value_text(pVal); } - sqlite3VdbeSetVarmask(pParse->pVdbe, pRight->iColumn, 0); + sqlite3VdbeSetVarmask(pParse->pVdbe, pRight->iColumn); assert( pRight->op==TK_VARIABLE || pRight->op==TK_REGISTER ); }else if( op==TK_STRING ){ z = pRight->u.zToken; @@ -689,7 +689,7 @@ static int isLikeOrGlob( *ppPrefix = pPrefix; if( op==TK_VARIABLE ){ Vdbe *v = pParse->pVdbe; - sqlite3VdbeSetVarmask(v, pRight->iColumn, 1); + sqlite3VdbeSetVarmask(v, pRight->iColumn); if( *pisComplete && pRight->u.zToken[1] ){ /* If the rhs of the LIKE expression is a variable, and the current ** value of the variable means there is no need to invoke the LIKE @@ -2045,7 +2045,7 @@ static int valueFromExpr( || (pExpr->op==TK_REGISTER && pExpr->op2==TK_VARIABLE) ){ int iVar = pExpr->iColumn; - sqlite3VdbeSetVarmask(pParse->pVdbe, iVar, 0); + sqlite3VdbeSetVarmask(pParse->pVdbe, iVar); *pp = sqlite3VdbeGetValue(pParse->pReprepare, iVar, aff); return SQLITE_OK; } |