]> granicus.if.org Git - pdns/commitdiff
Support mydns-ng style Y/N active field.
authorAki Tuomi <cmouse@desteem.org>
Tue, 9 Dec 2014 10:02:06 +0000 (12:02 +0200)
committerAki Tuomi <cmouse@desteem.org>
Tue, 9 Dec 2014 10:02:06 +0000 (12:02 +0200)
modules/mydnsbackend/mydnsbackend.cc

index bd9acaa72c48324edd8bf7f69b2c67dd3416dd04..63728574d6971516a3ba99c07884440802c09153 100644 (file)
@@ -59,8 +59,8 @@ MyDNSBackend::MyDNSBackend(const string &suffix) {
 
         d_rrtable=getArg("rr-table");
         d_soatable=getArg("soa-table");
-        d_rrwhere=(mustDo("rr-active")?"active = 1 and ":"")+getArg("rr-where");
-        d_soawhere=(mustDo("soa-active")?"active = 1 and ":"")+getArg("soa-where");
+        d_rrwhere=(mustDo("rr-active")?"(active = '1' or active = 'Y') and ":"")+getArg("rr-where");
+        d_soawhere=(mustDo("soa-active")?"(active = '1' or active = 'Y') and ":"")+getArg("soa-where");
         d_useminimalttl=mustDo("use-minimal-ttl");
         d_minimum=0;