IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 17, 2008, 3:26:17 PM (17 years ago)
Author:
Paul Price
Message:

Attempt to fix following schema change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/diff_outputs.pl

    r20811 r21033  
    2121
    2222my ($db_host, $db_name, $db_user, $db_pw); # Database details
    23 my ($diff_id);                  # Diff of interest
     23my ($diff_id, $skycell_id);     # Diff and skycell of interest
    2424my ($input);                    # Input list
    2525my ($products);                 # Products of interest
     
    3131           'dbpass=s' => \$db_pw, # Database p/w
    3232           'diff_id=s' => \$diff_id, # Diff identifier
     33           'skycell_id=s' => \$skycell_id, # Skycell identifier
    3334           'products=s' => \$products, # Products of interest
    3435           ) or die "Unable to parse arguments.\n";
     
    5051# Query to run
    5152my $sql = "SELECT path_base FROM diffSkyfile WHERE diff_id = $diff_id";
     53$sql .= " AND skycell_id = $skycell_id" if defined $skycell_id;
    5254
    5355# List of diffs
Note: See TracChangeset for help on using the changeset viewer.