Skip Menu |

This queue is for tickets about the PowerDNS-Backend-MySQL CPAN distribution.

Report information
The Basics
Id: 33569
Status: resolved
Estimated: 15 min
Worked: 15 min
Left: 15 min
Priority: 1/
Queue: PowerDNS-Backend-MySQL

People
Owner: augie.schwer [...] gmail.com
Requestors: frankie [...] debian.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.03
  • 0.04
Fixed in: (no value)



Subject: Please add ttl and priority to list_records()
This is extremely useful to dump completely zone data. Thanks --- MySQL.pm 2008-02-16 01:39:38.000000000 +0100 +++ PowerDNS/Backend/MySQL.pm 2008-02-23 10:45:48.000000000 +0100 @@ -295,11 +295,11 @@ my $domain = shift; my @records; - my $sth = $self->{'dbh'}->prepare("SELECT name,content FROM records WHERE type = ? and domain_id = (SELECT id FROM domains WHERE name = + my $sth = $self->{'dbh'}->prepare("SELECT name,content,ttl,prio FROM records WHERE type = ? and domain_id = (SELECT id FROM domains WHE $sth->execute($$rr,$$domain); - while ( my ($name,$content) = $sth->fetchrow_array ) - { push @records , [ ($name,$content) ]; } # push anonymous array on to end. + while ( my ($name,$content,$ttl,$prio) = $sth->fetchrow_array ) + { push @records , [ ($name,$content,$ttl,$prio) ]; } # push anonymous array on to end. return \@records; }
Fixed 0.05; thanks!