]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: fix invalid catalog zone sql query for gpgsqlbackend 12269/head
authorManuel Frei <frei.manu@gmail.com>
Tue, 6 Dec 2022 00:34:37 +0000 (01:34 +0100)
committerManuel Frei <frei.manu@gmail.com>
Tue, 6 Dec 2022 00:34:37 +0000 (01:34 +0100)
modules/gpgsqlbackend/gpgsqlbackend.cc

index 9160b64e9052e8a442e0bfa363bed140a32b7b03..e6a346fe4a54706c55783cd00cac6ed19508149b 100644 (file)
@@ -140,7 +140,7 @@ public:
     declare(suffix, "update-serial-query", "", "update domains set notified_serial=$1 where id=$2");
     declare(suffix, "update-lastcheck-query", "", "update domains set last_check=$1 where id=$2");
     declare(suffix, "info-all-master-query", "", "select domains.id, domains.name, domains.type, domains.notified_serial, domains.options, domains.catalog, records.content from records join domains on records.domain_id=domains.id and records.name=domains.name where records.type='SOA' and records.disabled=false and domains.type in ('MASTER', 'PRODUCER')");
-    declare(suffix, "info-producer-members-query", "", "select domains.id, domains.name, domains.options from records join domains on records.domain_id=domains.id and records.name=domains.name where domains.type='MASTER' and domains.catalog=$1 and records.type='SOA' and records.disabled=0");
+    declare(suffix, "info-producer-members-query", "", "select domains.id, domains.name, domains.options from records join domains on records.domain_id=domains.id and records.name=domains.name where domains.type='MASTER' and domains.catalog=$1 and records.type='SOA' and records.disabled=false");
     declare(suffix, "info-consumer-members-query", "", "select id, name, options, master from domains where type='SLAVE' and catalog=$1");
     declare(suffix, "delete-domain-query", "", "delete from domains where name=$1");
     declare(suffix, "delete-zone-query", "", "delete from records where domain_id=$1");