reset();
}
catch (SSqlException &e) {
- throw PDNSException("GSQLBackend unable to set master of domain \""+domain.toString()+"\": "+e.txtReason());
+ throw PDNSException("GSQLBackend unable to set master of domain '"+domain.toLogString()+"': "+e.txtReason());
}
return true;
}
reset();
}
catch (SSqlException &e) {
- throw PDNSException("GSQLBackend unable to set kind of domain \""+domain.toString()+"\": "+e.txtReason());
+ throw PDNSException("GSQLBackend unable to set kind of domain '"+domain.toLogString()+"': "+e.txtReason());
}
return true;
}
reset();
}
catch (SSqlException &e) {
- throw PDNSException("GSQLBackend unable to set account of domain \""+domain.toString()+"\": "+e.txtReason());
+ throw PDNSException("GSQLBackend unable to set account of domain '"+domain.toLogString()+"': "+e.txtReason());
}
return true;
}
reset();
}
catch (SSqlException &e) {
- throw PDNSException("GSQLBackend unable to delete empty non-terminal rr "+qname.toString()+" from domain_id "+itoa(domain_id)+": "+e.txtReason());
+ throw PDNSException("GSQLBackend unable to delete empty non-terminal rr '"+qname.toLogString()+"' from domain_id "+itoa(domain_id)+": "+e.txtReason());
return false;
}
}
reset();
}
catch (SSqlException &e) {
- throw PDNSException("GSQLBackend unable to insert empty non-terminal rr "+qname.toString()+" in domain_id "+itoa(domain_id)+": "+e.txtReason());
+ throw PDNSException("GSQLBackend unable to insert empty non-terminal rr '"+qname.toLogString()+"' in domain_id "+itoa(domain_id)+": "+e.txtReason());
return false;
}
}
bool GSQLBackend::listSubZone(const DNSName &zone, int domain_id) {
- string wildzone = "%." + toLower(zone.toStringNoDot());
+ string wildzone = "%." + zone.makeLowerCase().toStringNoDot();
try {
reconnectIfNeeded();
reset();
}
catch(SSqlException &e) {
- throw PDNSException("Database error trying to insert new domain '"+domain.toString()+"': "+ e.txtReason());
+ throw PDNSException("Database error trying to insert new domain '"+domain.toLogString()+"': "+ e.txtReason());
}
return true;
}
createDomain(domain, "SLAVE", masters, account);
}
catch(SSqlException &e) {
- throw PDNSException("Database error trying to insert new slave domain '"+domain.toString()+"': "+ e.txtReason());
+ throw PDNSException("Database error trying to insert new slave domain '"+domain.toLogString()+"': "+ e.txtReason());
}
return true;
}
reset();
}
catch(SSqlException &e) {
- throw PDNSException("Database error trying to delete domain '"+domain.toString()+"': "+ e.txtReason());
+ throw PDNSException("Database error trying to delete domain '"+domain.toLogString()+"': "+ e.txtReason());
}
return true;
}
virtual SSqlStatement* bind(const string& name, unsigned long long value)=0;
virtual SSqlStatement* bind(const string& name, const std::string& value)=0;
SSqlStatement* bind(const string& name, const DNSName& value) {
- return bind(name, toLower(value.toStringRootDot()));
+ return bind(name, value.makeLowerCase().toStringRootDot());
}
virtual SSqlStatement* bindNull(const string& name)=0;
virtual SSqlStatement* execute()=0;;