aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeapi.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-09-18 17:52:15 +0000
committerdrh <drh@noemail.net>2014-09-18 17:52:15 +0000
commit74eaba4de25d955314df279e5ca27aa24f2698ea (patch)
tree9a89e624b64f3f8c48d924e763c0e9224d0a268d /src/vdbeapi.c
parent24a096297ef66348e059b07328f1beb466b5e7c9 (diff)
downloadsqlite-74eaba4de25d955314df279e5ca27aa24f2698ea.tar.gz
sqlite-74eaba4de25d955314df279e5ca27aa24f2698ea.zip
Merge the Mem.r value into the MemValue union as Mem.u.r. Hence, a Mem can
now store an integer or a real but not both at the same time. Strings are still stored in a separate element Mem.z, for now. FossilOrigin-Name: 4c8c89d7e62aecfe2eb735f7bb114aed6b452847
Diffstat (limited to 'src/vdbeapi.c')
-rw-r--r--src/vdbeapi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vdbeapi.c b/src/vdbeapi.c
index ef1167a52..aad64aa64 100644
--- a/src/vdbeapi.c
+++ b/src/vdbeapi.c
@@ -807,7 +807,6 @@ static const Mem *columnNullValue(void){
/* .flags = */ MEM_Null,
/* .enc = */ 0,
/* .n = */ 0,
- /* .r = */ (double)0,
/* .z = */ 0,
/* .zMalloc = */ 0,
/* .db = */ 0,
@@ -1272,7 +1271,7 @@ int sqlite3_bind_value(sqlite3_stmt *pStmt, int i, const sqlite3_value *pValue){
break;
}
case SQLITE_FLOAT: {
- rc = sqlite3_bind_double(pStmt, i, pValue->r);
+ rc = sqlite3_bind_double(pStmt, i, pValue->u.r);
break;
}
case SQLITE_BLOB: {