diff options
author | drh <drh@noemail.net> | 2001-11-08 00:45:21 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2001-11-08 00:45:21 +0000 |
commit | 487ab3ca18834979fe1a3e08ba03296caa2b518e (patch) | |
tree | d38d9fc0ba39c60d6e75d99a12f87425950d7564 /src/expr.c | |
parent | 6b56344d4a349dd26e2c92276f08ee24d2188799 (diff) | |
download | sqlite-487ab3ca18834979fe1a3e08ba03296caa2b518e.tar.gz sqlite-487ab3ca18834979fe1a3e08ba03296caa2b518e.zip |
The new code for taking advantage of inequalities in WHERE clauses
is in place. It appears to work. (CVS 305)
FossilOrigin-Name: 262bcd17df19f45def6144b5a7e0602ca5b03deb
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/expr.c b/src/expr.c index 957f9e852..8e2045bf8 100644 --- a/src/expr.c +++ b/src/expr.c @@ -12,7 +12,7 @@ ** This file contains routines used for analyzing expressions and ** for generating VDBE code that evaluates expressions in SQLite. ** -** $Id: expr.c,v 1.32 2001/10/22 02:58:10 drh Exp $ +** $Id: expr.c,v 1.33 2001/11/08 00:45:21 drh Exp $ */ #include "sqliteInt.h" @@ -340,7 +340,6 @@ int sqliteFuncId(Token *pToken){ { "max", 3, FN_Max }, { "sum", 3, FN_Sum }, { "avg", 3, FN_Avg }, - { "fcnt", 4, FN_Fcnt }, /* Used for testing only */ { "length", 6, FN_Length }, { "substr", 6, FN_Substr }, { "abs", 3, FN_Abs }, @@ -419,18 +418,6 @@ int sqliteExprCheck(Parse *pParse, Expr *pExpr, int allowAgg, int *pIsAgg){ too_many_args = n>3; break; } - /* The "fcnt(*)" function always returns the number of OP_MoveTo - ** operations that have occurred so far while processing the - ** SQL statement. This information can be used by test procedures - ** to verify that indices are being used properly to minimize - ** searching. All arguments to fcnt() are ignored. fcnt() has - ** no use (other than testing) that we are aware of. - */ - case FN_Fcnt: { - n = 0; - break; - } - default: break; } if( no_such_func ){ @@ -635,10 +622,6 @@ void sqliteExprCode(Parse *pParse, Expr *pExpr){ int i; ExprList *pList = pExpr->pList; switch( id ){ - case FN_Fcnt: { - sqliteVdbeAddOp(v, OP_Fcnt, 0, 0); - break; - } case FN_Min: case FN_Max: { op = id==FN_Min ? OP_Min : OP_Max; |