aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2005-01-15 01:52:31 +0000
committerdrh <drh@noemail.net>2005-01-15 01:52:31 +0000
commit018d1a4929f7efbb5d05771dbd2facd663d41ef5 (patch)
tree25e021f1fcb997f9ab428f2d87cb08c6ce89e071 /src/expr.c
parent8b07c7178a63d58473fb1f56623d7444522b0613 (diff)
downloadsqlite-018d1a4929f7efbb5d05771dbd2facd663d41ef5.tar.gz
sqlite-018d1a4929f7efbb5d05771dbd2facd663d41ef5.zip
Test coverage improvements. (CVS 2215)
FossilOrigin-Name: 92f9d2b2f480fccfa6e8b70a1d19058b92a4ea8f
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/expr.c b/src/expr.c
index cc753be27..8e125624a 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.177 2005/01/13 02:14:25 danielk1977 Exp $
+** $Id: expr.c,v 1.178 2005/01/15 01:52:32 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -614,16 +614,6 @@ int sqlite3ExprIsInteger(Expr *p, int *pValue){
}
break;
}
- case TK_STRING: {
- const u8 *z = (u8*)p->token.z;
- int n = p->token.n;
- if( n>0 && z[0]=='-' ){ z++; n--; }
- while( n>0 && *z && isdigit(*z) ){ z++; n--; }
- if( n==0 && sqlite3GetInt32(p->token.z, pValue) ){
- return 1;
- }
- break;
- }
case TK_UPLUS: {
return sqlite3ExprIsInteger(p->pLeft, pValue);
}