IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27890


Ignore:
Timestamp:
May 10, 2010, 10:08:21 AM (16 years ago)
Author:
Paul Price
Message:

Adding selection by data_group.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/errors.pl

    r27721 r27890  
    1212my ($db_host, $db_name, $db_user, $db_pw); # Database details
    1313my ($label);                               # Label
     14my ($group);                               # Data group
    1415my ($stage);                               # Stage of interest
    1516my ($fault);                               # Fault code of interest
     
    2324           'stage=s' => \$stage, # Stage
    2425           'label=s@' => \$label, # Label(s)
     26           'data_group=s@' => \$group, # Data group(s)
    2527           'fault=s' => \$fault, # Fault code
    2628           'limit=s' => \$limit, # Limit to query
     
    8284my $where = "";                 # WHERE restriction
    8385$where .= " AND ($label_table.label LIKE '" . join("' OR $label_table.label LIKE '", @$label) . "')" if defined $label;
     86$where .= " AND ($label_table.data_group LIKE '" . join("' OR $label_table.data_group LIKE '", @$group) . "')" if defined $group;
    8487$where .= " AND $fault_table.fault = $fault" if defined $fault;
    8588
Note: See TracChangeset for help on using the changeset viewer.