1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-08 03:22:21 +03:00

Back out part of the previous change that was not really necessary in order

to fix [80ba201079ea60], and which in fact serves no useful purpose.

FossilOrigin-Name: fa9eef865f2f399870305bef82296db25e5b3e90
This commit is contained in:
drh
2010-12-06 18:59:13 +00:00
parent 48b5b041d1
commit ef4c059843
3 changed files with 11 additions and 22 deletions

View File

@@ -3036,17 +3036,6 @@ static int evalConstExpr(Walker *pWalker, Expr *pExpr){
return WRC_Continue;
}
/* This routine is part of the parse-tree walker for
** sqlite3ExprCodeConstants(). Simply return WRC_Continue so that
** tree walker logic will extend constant extraction and precoding
** into subqueires.
*/
static int evalConstSelect(Walker *pNotUsed1, Select *pNotUsed2){
UNUSED_PARAMETER(pNotUsed1);
UNUSED_PARAMETER(pNotUsed2);
return WRC_Continue;
}
/*
** Preevaluate constant subexpressions within pExpr and store the
** results in registers. Modify pExpr so that the constant subexpresions
@@ -3056,7 +3045,7 @@ void sqlite3ExprCodeConstants(Parse *pParse, Expr *pExpr){
Walker w;
if( pParse->cookieGoto ) return;
w.xExprCallback = evalConstExpr;
w.xSelectCallback = evalConstSelect;
w.xSelectCallback = 0;
w.pParse = pParse;
sqlite3WalkExpr(&w, pExpr);
}