changeset 130:2d2b268799a2

Explicit deallocation of prepared statements
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 01 Mar 2019 11:02:31 +0100
parents 534759b0cf14
children 90692f9c33e0
files Framework/PostgreSQL/PostgreSQLStatement.cpp PostgreSQL/NEWS
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/PostgreSQL/PostgreSQLStatement.cpp	Fri Feb 08 20:12:29 2019 +0100
+++ b/Framework/PostgreSQL/PostgreSQLStatement.cpp	Fri Mar 01 11:02:31 2019 +0100
@@ -200,7 +200,7 @@
       // "Although there is no libpq function for deleting a
       // prepared statement, the SQL DEALLOCATE statement can be
       // used for that purpose."
-      //database_.Execute("DEALLOCATE " + id_);
+      database_.Execute("DEALLOCATE \"" + id_ + "\"");
     }
 
     id_.clear();
--- a/PostgreSQL/NEWS	Fri Feb 08 20:12:29 2019 +0100
+++ b/PostgreSQL/NEWS	Fri Mar 01 11:02:31 2019 +0100
@@ -1,6 +1,8 @@
 Pending changes in the mainline
 ===============================
 
+* Explicit deallocation of prepared statements
+
 
 Release 3.1 (2019-02-08)
 ========================