From 3c8889fd94bb378b78ac3a04a9c60315457c8ee0 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Thu, 21 Jul 2011 23:36:16 +0200 Subject: Quote prepared statement name in deallocation command --- odb/pgsql/statement.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'odb') 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; -- cgit v1.1