Changeset 27241
- Timestamp:
- Mar 10, 2010, 3:51:49 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/tools/delete_convolved_diff.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/delete_convolved_diff.pl
r27106 r27241 46 46 my @files; # Files to clean up 47 47 { 48 my $sql = "SELECT path_base FROM diffSkyfile JOIN diffRun USING(diff_id) JOIN magicRun USING(diff_id) WHERE diffRun.state IN ('full', 'drop') AND magicRun.state IN ('full', 'drop', 'censored') AND diffSkyfile.hostname = '$hostname'"; 48 49 my $sql = <<SQL_DONE; 50 SELECT path_base 51 FROM diffRun 52 JOIN diffSkyfile USING(diff_id) 53 JOIN magicRun USING(diff_id) 54 WHERE diffRun.state IN ('full', 'drop') 55 AND magicRun.state IN ('full', 'drop', 'censored') 56 AND diffRun.bothways = 0 57 AND diffSkyfile.hostname = '$hostname' 58 UNION 59 SELECT path_base 60 FROM diffRun 61 JOIN diffSkyfile USING(diff_id) 62 JOIN magicRun AS magicPositive 63 ON magicPositive.diff_id = diffRun.diff_id 64 AND magicPositive.inverse = 0 65 JOIN magicRun AS magicNegative 66 ON magicNegative.diff_id = diffRun.diff_id 67 AND magicNegative.inverse = 1 68 WHERE diffRun.state IN ('full', 'drop') 69 AND magicPositive.state IN ('full', 'drop', 'censored') 70 AND magicNegative.state IN ('full', 'drop', 'censored') 71 AND diffRun.bothways = 1 72 AND diffSkyfile.hostname = '$hostname' 73 SQL_DONE 74 49 75 my $results = $db->selectall_arrayref( $sql ) or die "Unable to execute SQL: $DBI::errstr"; 50 76 foreach my $result ( @$results ) {
Note:
See TracChangeset
for help on using the changeset viewer.
