aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/pgsql/statement.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/pgsql/statement.cxx b/odb/pgsql/statement.cxx
index a9c7d9b..3f5b340 100644
--- a/odb/pgsql/statement.cxx
+++ b/odb/pgsql/statement.cxx
@@ -86,6 +86,9 @@ namespace odb
{
const bind& current_bind (b.bind[i]);
+ n.formats[i] = 1;
+ n.lengths[i] = 0;
+
if (current_bind.is_null != 0 && *current_bind.is_null)
{
n.values[i] = 0;
@@ -93,7 +96,6 @@ namespace odb
}
n.values[i] = reinterpret_cast<char*> (current_bind.buffer);
- n.formats[i] = 1;
size_t l;