aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/statement.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/pgsql/statement.cxx')
-rw-r--r--odb/pgsql/statement.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/pgsql/statement.cxx b/odb/pgsql/statement.cxx
index c1de28d..f9a4fb7 100644
--- a/odb/pgsql/statement.cxx
+++ b/odb/pgsql/statement.cxx
@@ -97,7 +97,7 @@ namespace odb
n.values[i] = reinterpret_cast<char*> (current_bind.buffer);
- size_t l;
+ size_t l (0);
switch (current_bind.type)
{
@@ -458,7 +458,7 @@ namespace odb
native_data_.formats,
1));
PGresult* h (r.get ());
- ExecStatusType stat;
+ ExecStatusType stat (PGRES_FATAL_ERROR);
if (!is_good_result (h, &stat))
{