Mercurial > hg > orthanc-databases
diff Framework/PostgreSQL/PostgreSQLStatement.cpp @ 130:2d2b268799a2
Explicit deallocation of prepared statements
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 01 Mar 2019 11:02:31 +0100 |
parents | 5765cc5fd268 |
children | 4cd7e45b671e |
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();