aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-04-01 12:24:11 +0000
committerdrh <drh@noemail.net>2008-04-01 12:24:11 +0000
commitb3843a82eae40d9f69007fe9ddfdeb3bb337c8ee (patch)
treed35876cf67205d4a7fa99bcaf0c05bfcc874ce1a /src/expr.c
parentda250ea599db7544f29ddff1e98a44280dfd82a6 (diff)
downloadsqlite-b3843a82eae40d9f69007fe9ddfdeb3bb337c8ee.tar.gz
sqlite-b3843a82eae40d9f69007fe9ddfdeb3bb337c8ee.zip
Fix a problem with CASTs and the new CSE mechanism. (CVS 4950)
FossilOrigin-Name: e25939fb25ec8bde8500a672ca5be3cbb514ac3a
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c
index 6067affd3..ec9f7d554 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.362 2008/04/01 05:07:15 drh Exp $
+** $Id: expr.c,v 1.363 2008/04/01 12:24:11 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -2204,6 +2204,7 @@ int sqlite3ExprCodeTarget(Parse *pParse, Expr *pExpr, int target){
assert( to_op==OP_ToInt || aff!=SQLITE_AFF_INTEGER );
assert( to_op==OP_ToReal || aff!=SQLITE_AFF_REAL );
sqlite3VdbeAddOp1(v, to_op, inReg);
+ sqlite3ExprCacheAffinityChange(pParse, inReg, 1);
break;
}
#endif /* SQLITE_OMIT_CAST */