summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-07-29 00:14:03 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-07-29 00:14:03 (GMT)
commitf38e5a051b4d57e1cb9c1e503d2a8895e8532172 (patch)
treeda3706929a130da3ebe124975db758e72b44ae0e /src/arch
parent41efd099244b53a0edb40d097b34bf28a05b6367 (diff)
Handled NULL properly in SQL requests and fixed the recording of updated items.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@559 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/vmpa.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/arch/vmpa.c b/src/arch/vmpa.c
index 9f2245c..5030562 100644
--- a/src/arch/vmpa.c
+++ b/src/arch/vmpa.c
@@ -639,8 +639,7 @@ bool prepare_vmpa_db_statement(const vmpa2t *addr, bound_value **values, size_t
}
else
{
- value->type = SQLITE_RAW;
- value->cstring = "NULL";
+ value->type = SQLITE_NULL;
}
*values = (bound_value *)realloc(*values, ++(*count) * sizeof(bound_value));
@@ -655,8 +654,7 @@ bool prepare_vmpa_db_statement(const vmpa2t *addr, bound_value **values, size_t
}
else
{
- value->type = SQLITE_RAW;
- value->cstring = "NULL";
+ value->type = SQLITE_NULL;
}
return true;