#include "pdns/ahuexception.hh"
#include "pdns/logger.hh"
#include "pdns/arguments.hh"
-
+#include <boost/algorithm/string.hpp>
#include <sstream>
+using namespace boost;
void GSQLBackend::setNotified(uint32_t domain_id, uint32_t serial)
{
di.backend=this;
string type=d_result[0][5];
- if(type=="SLAVE") {
+ if(iequals(type,"SLAVE")) {
di.serial=0;
try {
SOAData sd;
di.kind=DomainInfo::Slave;
}
- else if(type=="MASTER")
+ else if(iequals(type,"MASTER"))
di.kind=DomainInfo::Slave;
else
di.kind=DomainInfo::Native;