aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-01-18 02:31:56 +0000
committerdrh <drh@noemail.net>2008-01-18 02:31:56 +0000
commitc5531beb56cd0bbf030529d4dc100ffc0aebf34d (patch)
treed14af995b06afa5c8cf85f95240f7b37cbda577c /src/expr.c
parent008e476c284a866196d79d7780ea02b5487df2b1 (diff)
downloadsqlite-c5531beb56cd0bbf030529d4dc100ffc0aebf34d.tar.gz
sqlite-c5531beb56cd0bbf030529d4dc100ffc0aebf34d.zip
Fix a bug in the test scripts that was preventing many scripts from
running with all.test. Lots of hidden failures now come to light. (CVS 4723) FossilOrigin-Name: 251c78a982a33194a052897c37a2a79ae9654452
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/expr.c b/src/expr.c
index cfae6450d..ec850ea17 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.348 2008/01/17 17:15:56 drh Exp $
+** $Id: expr.c,v 1.349 2008/01/18 02:31:56 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -2054,9 +2054,6 @@ static int sqlite3ExprCodeTarget(Parse *pParse, Expr *pExpr, int target){
assert( TK_GE==OP_Ge );
assert( TK_EQ==OP_Eq );
assert( TK_NE==OP_Ne );
- if( target==0 ){
- inReg = ++pParse->nMem;
- }
r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
r2 = sqlite3ExprCodeTemp(pParse, pExpr->pRight, &regFree2);
codeCompare(pParse, pExpr->pLeft, pExpr->pRight, op,
@@ -2225,9 +2222,6 @@ static int sqlite3ExprCodeTarget(Parse *pParse, Expr *pExpr, int target){
*/
affinity = comparisonAffinity(pExpr);
- if( target==0 ){
- target = inReg = ++pParse->nMem;
- }
sqlite3VdbeAddOp2(v, OP_Integer, 1, target);
/* Code the <expr> from "<expr> IN (...)". The temporary table
@@ -2271,9 +2265,6 @@ static int sqlite3ExprCodeTarget(Parse *pParse, Expr *pExpr, int target){
struct ExprList_item *pLItem = pExpr->pList->a;
Expr *pRight = pLItem->pExpr;
- if( target==0 ){
- inReg = target = ++pParse->nMem;
- }
r1 = sqlite3ExprCodeTemp(pParse, pLeft, &regFree1);
r2 = sqlite3ExprCodeTemp(pParse, pRight, &regFree2);
r3 = sqlite3GetTempReg(pParse);