aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2007-02-24 13:53:05 +0000
committerdrh <drh@noemail.net>2007-02-24 13:53:05 +0000
commitdd73521bc26ccd24bc8652f672c74c2fcdc6f0f4 (patch)
tree5cb02f1e43c04897fdfe02f7cb0190634c501835 /src/expr.c
parent8103b7d2b7fa06f42494cb8d22c75e67d4acd4cb (diff)
downloadsqlite-dd73521bc26ccd24bc8652f672c74c2fcdc6f0f4.tar.gz
sqlite-dd73521bc26ccd24bc8652f672c74c2fcdc6f0f4.zip
Additional tests and some improvements to the INSERT transfer
optimization. More testing is needed. (CVS 3661) FossilOrigin-Name: 830985814345f71ba2def3c206e36aabe9e1ee7c
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c
index d0b858efd..39cb06585 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.278 2007/02/24 11:52:53 drh Exp $
+** $Id: expr.c,v 1.279 2007/02/24 13:53:05 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -2210,7 +2210,7 @@ int sqlite3ExprCompare(Expr *pA, Expr *pB){
}
if( pA->pSelect || pB->pSelect ) return 0;
if( pA->iTable!=pB->iTable || pA->iColumn!=pB->iColumn ) return 0;
- if( pA->token.z ){
+ if( pA->op!=TK_COLUMN && pA->token.z ){
if( pB->token.z==0 ) return 0;
if( pB->token.n!=pA->token.n ) return 0;
if( sqlite3StrNICmp((char*)pA->token.z,(char*)pB->token.z,pB->token.n)!=0 ){