Changeset 882 for trunk/cgi-bin/IPDB.pm
- Timestamp:
- 06/14/16 16:46:48 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r877 r882 3072 3072 # explicitly deleting any suballocations of the block to be deleted. 3073 3073 3074 # See if we have child allocations. Fail for now. 3075 my ($childcount) = $dbh->selectrow_array("SELECT count(*) from allocations where parent_id = ?", undef, $id); 3076 if ($childcount) { 3077 $msg = ''; 3078 die "$binfo->{block} still has suballocations\n"; 3079 } 3080 3074 3081 # get parent info of the block we're deleting 3075 3082 my $pinfo = getBlockData($dbh, $binfo->{parent_id}); … … 3238 3245 }; # end eval 3239 3246 if ($@) { 3240 $msg .= ": $@";3247 if ($msg) { $msg .= ": $@"; } else { $msg = $@; } 3241 3248 eval { $dbh->rollback; }; 3242 3249 return ('FAIL', $msg);
Note:
See TracChangeset
for help on using the changeset viewer.