Changeset 402
- Timestamp:
- 10/04/12 13:38:42 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r401 r402 2212 2212 ($args{offset} eq 'all' ? '' : " LIMIT $config{perpage}". 2213 2213 " OFFSET ".$args{offset}*$config{perpage}); 2214 2215 my $ret = $dbh->selectall_arrayref($sql, { Slice => {} }, (@filterargs) ); 2216 return $ret; 2214 my $sth = $dbh->prepare($sql); 2215 $sth->execute(@filterargs); 2216 my $rownum = 0; 2217 2218 while (my @data = $sth->fetchrow_array) { 2219 my %row; 2220 $row{domain_id} = $data[0]; 2221 $row{domain} = $data[1]; 2222 $row{status} = $data[2]; 2223 $row{group} = $data[3]; 2224 push @zonelist, \%row; 2225 } 2226 2227 return \@zonelist; 2217 2228 } # end getZoneList() 2218 2229
Note:
See TracChangeset
for help on using the changeset viewer.