From: Peter van Dijk Date: Fri, 17 Feb 2017 15:36:25 +0000 (+0100) Subject: fix godbc query logging X-Git-Tag: rec-4.1.0-alpha1~274^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5051%2Fhead;p=thirdparty%2Fpdns.git fix godbc query logging --- diff --git a/modules/godbcbackend/sodbc.cc b/modules/godbcbackend/sodbc.cc index c23c77c11c..2ba6cb3b18 100644 --- a/modules/godbcbackend/sodbc.cc +++ b/modules/godbcbackend/sodbc.cc @@ -19,6 +19,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "pdns/logger.hh" #include "pdns/utility.hh" #include #include "sodbc.hh" @@ -188,7 +189,7 @@ public: SQLRETURN result; // cerr<<"execute("<reset(); } @@ -447,7 +448,7 @@ SSqlException SODBC::sPerrorException( const std::string & reason ) SSqlStatement* SODBC::prepare(const string& query, int nparams) { - return new SODBCStatement(query, true, nparams, m_connection); + return new SODBCStatement(query, m_log, nparams, m_connection); }