diff options
author | drh <drh@noemail.net> | 2010-12-06 18:59:13 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2010-12-06 18:59:13 +0000 |
commit | ef4c0598438b409cc7367e7583a3aa01c16b3e3f (patch) | |
tree | d78693a2b4d41e9c7b688cc9501474b269bd221d /src/expr.c | |
parent | 48b5b041d1cb6b3c3f005fc32de3600379b977d9 (diff) | |
download | sqlite-ef4c0598438b409cc7367e7583a3aa01c16b3e3f.tar.gz sqlite-ef4c0598438b409cc7367e7583a3aa01c16b3e3f.zip |
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
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/expr.c b/src/expr.c index d2fa68250..3a6ba9f3e 100644 --- a/src/expr.c +++ b/src/expr.c @@ -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); } |