IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 14, 2010, 11:54:15 AM (16 years ago)
Author:
Paul Price
Message:

Fix stacktool -tosum to require that all inputs have state = 'full'.

File:
1 edited

Legend:

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

    r24601 r27679  
    1 SELECT DISTINCT
     1SELECT
    22    stackRun.stack_id,
    33    stackRun.tess_id,
     
    88    stackRun.state
    99FROM stackRun
    10 JOIN stackInputSkyfile
    11     USING(stack_id)
    12 LEFT JOIN stackSumSkyfile
    13     USING(stack_id)
     10JOIN stackInputSkyfile USING(stack_id)
     11JOIN warpRun USING(warp_id)
     12LEFT JOIN stackSumSkyfile USING(stack_id)
    1413WHERE
    1514    ((stackRun.state = 'new' AND stackSumSkyfile.stack_id IS NULL)
    1615    OR (stackRun.state = 'update' AND stackSumSkyfile.fault = 0 AND stackSumSkyfile.quality = 0))
     16    -- WHERE hook %s
     17GROUP BY stack_id
     18HAVING COUNT(warpRun.state = 'full') = COUNT(stackInputSkyfile.warp_id)
Note: See TracChangeset for help on using the changeset viewer.