IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 4, 2009, 7:14:15 PM (17 years ago)
Author:
bills
Message:

in -definebyquery -rerun don't queue if a run with the given label exists
(previous change didn't work)

File:
1 edited

Legend:

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

    r26033 r26039  
    11-- Get a list of exposures on which magic may be performed
    22SELECT DISTINCT
    3     exp_id,
     3    chipRun.exp_id,
    44    MAX(diffWarps.diff_id) AS diff_id,
    55    -- The following trick pulls out the 'inverse' value for the maximum diff_id
     
    3333JOIN camRun USING(cam_id)
    3434JOIN chipRun USING(chip_id)
    35 LEFT JOIN magicRun USING(exp_id)
     35LEFT JOIN
     36    (SELECT magic_id, exp_id, label
     37        FROM magicRun
     38        -- rerun hook %s
     39    ) AS oldMagicRun
     40    ON oldMagicRun.exp_id = chipRun.exp_id
    3641-- WHERE hook %s
    37 GROUP BY exp_id
     42GROUP BY chipRun.exp_id
Note: See TracChangeset for help on using the changeset viewer.