aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/pgsql/statement.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/pgsql/statement.cxx b/odb/pgsql/statement.cxx
index 3f5b340..c1de28d 100644
--- a/odb/pgsql/statement.cxx
+++ b/odb/pgsql/statement.cxx
@@ -87,11 +87,11 @@ 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;
+ n.lengths[i] = 0;
continue;
}