From: Kees Monshouwer Date: Sun, 10 Nov 2013 20:14:23 +0000 (+0100) Subject: code cleanup gmysqlbackend X-Git-Tag: rec-3.6.0-rc1~344^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=105f2ded8eb750cf274993669c9817dba74079d8;p=pdns code cleanup gmysqlbackend --- diff --git a/modules/gmysqlbackend/smysql.cc b/modules/gmysqlbackend/smysql.cc index 84b8c17d9..8b8682408 100644 --- a/modules/gmysqlbackend/smysql.cc +++ b/modules/gmysqlbackend/smysql.cc @@ -1,4 +1,4 @@ -/* Copyright 2001 Netherlabs BV, bert.hubert@netherlabs.nl. See LICENSE +/* Copyright 2001 Netherlabs BV, bert.hubert@netherlabs.nl. See LICENSE for more information. $Id$ */ #include "smysql.hh" @@ -13,7 +13,7 @@ bool SMySQL::s_dolog; pthread_mutex_t SMySQL::s_myinitlock = PTHREAD_MUTEX_INITIALIZER; -SMySQL::SMySQL(const string &database, const string &host, uint16_t port, const string &msocket, const string &user, +SMySQL::SMySQL(const string &database, const string &host, uint16_t port, const string &msocket, const string &user, const string &password, const string &group, bool setIsolation) { int retry=1; @@ -90,10 +90,9 @@ int SMySQL::doQuery(const string &query) L< #include "pdns/backends/gsql/ssql.hh" -#include "pdns/utility.hh" +#include "pdns/utility.hh" class SMySQL : public SSql { @@ -17,13 +17,13 @@ public: bool setIsolation=false); ~SMySQL(); - + SSqlException sPerrorException(const string &reason); int doQuery(const string &query, result_t &result); int doQuery(const string &query); int doCommand(const string &query); bool getRow(row_t &row); - string escape(const string &str); + string escape(const string &str); void setLog(bool state); private: MYSQL d_db; @@ -31,5 +31,5 @@ private: static bool s_dolog; static pthread_mutex_t s_myinitlock; }; - + #endif /* SSMYSQL_HH */