IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 11, 2010, 3:01:34 PM (16 years ago)
Author:
bills
Message:

In addtool -definebyquery prevent queuing a new addRun if one already exists
for the given exposure in the target dvo database

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/addtool_find_cam_id.sql

    r25789 r26915  
    66JOIN rawExp
    77    USING(exp_id)
     8LEFT JOIN (SELECT exp_id       AS added_exp_id,
     9                  addRun.dvodb AS previous_dvodb
     10           FROM addRun
     11           JOIN camRun USING(cam_id)
     12           JOIN chipRun USING(chip_id)
     13          ) as foo
     14     ON exp_id = added_exp_id
     15     -- hook for qualifying the join on the previous_dvodb
     16     AND %s
    817WHERE
    918    camRun.state = 'full'
     19    AND added_exp_id IS NULL
     20    -- addtool adds checks on exposure being added to the dvodb previously
Note: See TracChangeset for help on using the changeset viewer.