Skip to content

Commit

Permalink
all gsql backends are alive
Browse files Browse the repository at this point in the history
  • Loading branch information
mind04 committed Jun 2, 2015
1 parent a8f1128 commit b50b8e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 0 additions & 3 deletions modules/gmysqlbackend/smysql.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ class SMySQLStatement: public SSqlStatement
d_paridx++;
return this;
}
SSqlStatement* bind(const string& name, const DNSName& value) {
return bind(name, stripDot(value.toString())); // FIXME toLower() ?
}
SSqlStatement* bindNull(const string& name) {
if (d_paridx >= d_parnum)
throw SSqlException("Attempt to bind more parameters than query has: " + d_query);
Expand Down
7 changes: 5 additions & 2 deletions pdns/backends/gsql/ssql.hh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@

#include <string>
#include <vector>
#include "../../namespaces.hh"
#include <inttypes.h>
#include "../../dnsname.hh"
#include "../../namespaces.hh"
#include "../../misc.hh"

class SSqlException
{
Expand Down Expand Up @@ -45,7 +46,9 @@ public:
virtual SSqlStatement* bind(const string& name, long long value)=0;;
virtual SSqlStatement* bind(const string& name, unsigned long long value)=0;
virtual SSqlStatement* bind(const string& name, const std::string& value)=0;
virtual SSqlStatement* bind(const string& name, const DNSName& value)=0;
SSqlStatement* bind(const string& name, const DNSName& value) {
return bind(name, stripDot(value.toString()));
}
virtual SSqlStatement* bindNull(const string& name)=0;
virtual SSqlStatement* execute()=0;;
virtual bool hasNextRow()=0;
Expand Down

0 comments on commit b50b8e4

Please sign in to comment.