aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2004-05-16 22:55:28 +0000
committerdanielk1977 <danielk1977@noemail.net>2004-05-16 22:55:28 +0000
commit93edea938088fc2cab91224d76191bd912fb53b3 (patch)
tree23d0d032558606242bb952f301a371b95c3ad315 /src/expr.c
parent96f5b7672dc309ae8b89d4eb239540e55a5aa8a5 (diff)
downloadsqlite-93edea938088fc2cab91224d76191bd912fb53b3.tar.gz
sqlite-93edea938088fc2cab91224d76191bd912fb53b3.zip
Fix a bug meant real numbers with a negative sign were being stored as
strings by default (instead of IEEE floats). (CVS 1388) FossilOrigin-Name: 9321e7426337e04064b5791c48dd5fc3c1eecaa2
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 05a38de05..1ba427ef5 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.119 2004/05/16 11:57:28 danielk1977 Exp $
+** $Id: expr.c,v 1.120 2004/05/16 22:55:28 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -1170,7 +1170,7 @@ void sqlite3ExprCode(Parse *pParse, Expr *pExpr){
if( pExpr->pLeft->op==TK_INTEGER && sqlite3FitsIn32Bits(z) ){
sqlite3VdbeAddOp(v, OP_Integer, atoi(z), 0);
}else{
- sqlite3VdbeAddOp(v, OP_String, 0, 0);
+ sqlite3VdbeAddOp(v, OP_Real, 0, 0);
}
sqlite3VdbeChangeP3(v, -1, z, p->n+1);
sqliteFree(z);