aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-07-21 23:36:16 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-07-21 23:36:16 +0200
commit3c8889fd94bb378b78ac3a04a9c60315457c8ee0 (patch)
tree7c254a2f36e259fc7b39dadc19b38132853918dc
parenta2e7161733a0fd1b69a20b627cfab87dce2db2e5 (diff)
Quote prepared statement name in deallocation command
-rw-r--r--odb/pgsql/statement.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/odb/pgsql/statement.cxx b/odb/pgsql/statement.cxx
index 5b7a1da..dde67c9 100644
--- a/odb/pgsql/statement.cxx
+++ b/odb/pgsql/statement.cxx
@@ -46,8 +46,9 @@ namespace odb
if (deallocated_)
return;
- string s ("deallocate ");
+ string s ("deallocate \"");
s += name_;
+ s += "\"";
result_ptr r (PQexec (conn_.handle (), s.c_str ()));
deallocated_ = true;