diff Framework/PostgreSQL/PostgreSQLDatabase.cpp @ 29:2fb9cd42af14

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 16 Jul 2018 15:20:35 +0200
parents b2ff1cd2907a
children 6a574d810b98
line wrap: on
line diff
--- a/Framework/PostgreSQL/PostgreSQLDatabase.cpp	Mon Jul 16 14:48:43 2018 +0200
+++ b/Framework/PostgreSQL/PostgreSQLDatabase.cpp	Mon Jul 16 15:20:35 2018 +0200
@@ -104,8 +104,9 @@
   {
     PostgreSQLTransaction transaction(*this);
 
-    PostgreSQLStatement s(*this, "select pg_try_advisory_lock(" + 
-                          boost::lexical_cast<std::string>(lock) + ");");
+    Query query("select pg_try_advisory_lock(" + 
+                boost::lexical_cast<std::string>(lock) + ");", false);
+    PostgreSQLStatement s(*this, query);
 
     PostgreSQLResult result(s);
     if (result.IsDone() ||