Mercurial > hg > orthanc-databases
comparison 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 |
comparison
equal
deleted
inserted
replaced
129:534759b0cf14 | 130:2d2b268799a2 |
---|---|
198 if (id_.size() > 0) | 198 if (id_.size() > 0) |
199 { | 199 { |
200 // "Although there is no libpq function for deleting a | 200 // "Although there is no libpq function for deleting a |
201 // prepared statement, the SQL DEALLOCATE statement can be | 201 // prepared statement, the SQL DEALLOCATE statement can be |
202 // used for that purpose." | 202 // used for that purpose." |
203 //database_.Execute("DEALLOCATE " + id_); | 203 database_.Execute("DEALLOCATE \"" + id_ + "\""); |
204 } | 204 } |
205 | 205 |
206 id_.clear(); | 206 id_.clear(); |
207 } | 207 } |
208 | 208 |