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.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/pgsql/statement.cxx b/odb/pgsql/statement.cxx
index b65eb5b..eea3c39 100644
--- a/odb/pgsql/statement.cxx
+++ b/odb/pgsql/statement.cxx
@@ -187,6 +187,12 @@ namespace odb
text_ = text_copy_.c_str ();
}
+ if (empty ())
+ {
+ deallocated_ = true;
+ return;
+ }
+
{
odb::tracer* t;
if ((t = conn_.transaction_tracer ()) ||