% sqlEscape(qname)
).str();
}
- d_db->doCommand(query);
+ try {
+ d_db->doCommand(query);
+ }
+ catch (SSqlException &e) {
+ throw PDNSException("GSQLBackend unable to delete RRSet: "+e.txtReason());
+ }
+
if (rrset.empty()) {
// zap comments for now non-existing rrset
query = (boost::format(d_DeleteCommentRRsetQuery)
% sqlEscape(qname)
% sqlEscape(qt.getName())
).str();
- d_db->doCommand(query);
+ try {
+ d_db->doCommand(query);
+ }
+ catch (SSqlException &e) {
+ throw PDNSException("GSQLBackend unable to delete comment: "+e.txtReason());
+ }
}
BOOST_FOREACH(const DNSResourceRecord& rr, rrset) {
feedRecord(rr);
% sqlEscape(qt.getName())
).str();
- d_db->doCommand(query);
+ try {
+ d_db->doCommand(query);
+ }
+ catch (SSqlException &e) {
+ throw PDNSException("GSQLBackend unable to delete comment: "+e.txtReason());
+ }
BOOST_FOREACH(const Comment& comment, comments) {
feedComment(comment);