Changeset 341
- Timestamp:
- 06/08/12 18:14:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r340 r341 3266 3266 } 3267 3267 } 3268 3269 # Fiddle the field list into something suitable for updates3270 $fields =~ s/,/=?,/g;3271 $fields .= "=?";3268 if ($defrec eq 'n') { 3269 $domid = $parid if $revrec eq 'n'; 3270 $revid = $parid if $revrec eq 'y'; 3271 } 3272 3272 3273 3273 # Put together the success log entry. Horrible kludge from addRec() copied as-is since … … 3275 3275 # will be maintained (due to "not-in-zone" validation changes) 3276 3276 my %logdata; 3277 $logdata{domain_id} = $domid; 3278 $logdata{rdns_id} = $revid; 3277 3279 my @ftmp = split /,/, $fields; 3278 3280 for (my $i=0; $i <= $#vallist; $i++) { … … 3307 3309 local $dbh->{AutoCommit} = 0; 3308 3310 local $dbh->{RaiseError} = 1; 3311 3312 # Fiddle the field list into something suitable for updates 3313 $fields =~ s/,/=?,/g; 3314 $fields .= "=?"; 3309 3315 3310 3316 eval {
Note:
See TracChangeset
for help on using the changeset viewer.