aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-08-07 13:05:34 +0000
committerdrh <drh@noemail.net>2008-08-07 13:05:34 +0000
commita33cb5f776c294441ffa4982197a3fe04ea92e03 (patch)
treeb436a3147b23e9f5407138ead746af14126aee69 /src/expr.c
parent1857693df8c97bef746c01975a1dd081b2e7be8b (diff)
downloadsqlite-a33cb5f776c294441ffa4982197a3fe04ea92e03.tar.gz
sqlite-a33cb5f776c294441ffa4982197a3fe04ea92e03.zip
Improved clarity of presentation in the tokenizer. (CVS 5545)
FossilOrigin-Name: 732657c6a639bdf71a3341f6747d19298d442ddb
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/expr.c b/src/expr.c
index e8d8a1e99..074e3649c 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.387 2008/07/28 19:34:53 drh Exp $
+** $Id: expr.c,v 1.388 2008/08/07 13:05:35 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -1306,6 +1306,7 @@ static int lookupName(
*/
if( cnt==0 && zTab==0 && pColumnToken->z[0]=='"' ){
sqlite3DbFree(db, zCol);
+ pExpr->op = TK_STRING;
return 0;
}
@@ -1405,14 +1406,6 @@ static int nameResolverStep(void *pArg, Expr *pExpr){
}
#endif
switch( pExpr->op ){
- /* Double-quoted strings (ex: "abc") are used as identifiers if
- ** possible. Otherwise they remain as strings. Single-quoted
- ** strings (ex: 'abc') are always string literals.
- */
- case TK_STRING: {
- if( pExpr->token.z[0]=='\'' ) break;
- /* Fall thru into the TK_ID case if this is a double-quoted string */
- }
/* A lone identifier is the name of a column.
*/
case TK_ID: {