IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29213


Ignore:
Timestamp:
Sep 22, 2010, 4:05:18 PM (16 years ago)
Author:
rhenders
Message:

New method to return path to stack-stage cmf files for a given sky-id

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/perl/ippToPsps/Gpc1Db.pm

    r29193 r29213  
    88use ippToPsps::MySQLDb;
    99our @ISA = qw(ippToPsps::MySQLDb);    # inherits from MySQLDb
     10
     11###########################################################################
     12#
     13# Returns path to stack-stage cmf files for this sky_id
     14#
     15###########################################################################
     16sub getStackStageCmfs {
     17    my ($self, $skyId) = @_;
     18
     19    my $query = $self->{_db}->prepare(<<SQL);
     20    SELECT path_base
     21        FROM staticskyResult
     22        WHERE sky_id =  $skyId
     23SQL
     24
     25    $query->execute;
     26    return $query->fetchall_arrayref();
     27}
    1028
    1129###########################################################################
Note: See TracChangeset for help on using the changeset viewer.