Changeset 647


Ignore:
Timestamp:
06/23/14 17:36:50 (10 years ago)
Author:
Kris Deugau
Message:

/trunk

Tweak compact-recs.pl to use new database function and not choke on non-IP
values in the val column.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/compact-recs.pl

    r540 r647  
    103103  eval {
    104104    my $getsth = $dbh->prepare("SELECT record_id,host,val FROM records ".
    105         "WHERE (type = 12 OR type > 65000) AND CAST(val AS inet) << ?");
     105        "WHERE (type = 12 OR type > 65000) AND inetlazy(val) << ?");
    106106    my $delsth = $dbh->prepare("DELETE FROM records WHERE record_id = ?");
    107107    $getsth->execute($cidr);
Note: See TracChangeset for help on using the changeset viewer.