Changeset 563 for trunk


Ignore:
Timestamp:
12/19/12 16:21:38 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Work in progress, see #5:
Update listPool() to handle the fringes of the new table structures
that touch it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/IPDB.pm

    r562 r563  
    507507  my $pool = shift;
    508508
    509   my $sth = $dbh->prepare("SELECT ip,custid,available,description,type".
     509  my $sth = $dbh->prepare("SELECT ip,custid,available,description,type,rdepth".
    510510        " FROM poolips WHERE pool = ? ORDER BY ip");
    511511  $sth->execute($pool);
    512512  my @poolips;
    513   while (my ($ip,$custid,$available,$desc,$type) = $sth->fetchrow_array) {
     513  while (my ($ip,$custid,$available,$desc,$type,$rdepth) = $sth->fetchrow_array) {
    514514    my %row = (
    515515        ip => $ip,
     
    517517        available => $available,
    518518        desc => $desc,
    519         delme => $available eq 'n'
     519        delme => $available eq 'n',
     520        ipdepth => $rdepth,
    520521        );
    521522    push @poolips, \%row;
Note: See TracChangeset for help on using the changeset viewer.