Changeset 707 for trunk


Ignore:
Timestamp:
03/07/16 16:58:52 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

SQL tweaks on domain/revzone creation in r704 to permit zones to be
duplicated in different locations/views managed to get committed
wrong; fixing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r704 r707  
    23412341  return ('FAIL', "Invalid characters in domain") if $domain !~ /^[a-zA-Z0-9_.-]+$/;
    23422342
    2343   my $sth = $dbh->prepare("SELECT domain_id FROM domains WHERE lower(domain) = lower(?) AND location = ?");
     2343  my $sth = $dbh->prepare("SELECT domain_id FROM domains WHERE lower(domain) = lower(?) AND default_location = ?");
    23442344  my $dom_id;
    23452345
     
    23622362
    23632363    # get the ID...
    2364     ($dom_id) = $dbh->selectrow_array("SELECT domain_id FROM domains WHERE lower(domain) = lower(?) AND location = ?",
     2364    ($dom_id) = $dbh->selectrow_array("SELECT domain_id FROM domains WHERE lower(domain) = lower(?) AND default_location = ?",
    23652365        undef, ($domain, $defloc));
    23662366
Note: See TracChangeset for help on using the changeset viewer.