1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-08 03:22:21 +03:00

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
This commit is contained in:
danielk1977
2004-05-16 22:55:28 +00:00
parent 96f5b7672d
commit 93edea9380
5 changed files with 17 additions and 15 deletions

View File

@@ -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);