IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15272


Ignore:
Timestamp:
Oct 9, 2007, 3:56:40 PM (19 years ago)
Author:
jhoblitt
Message:

split magictool_toprocess.sql into two separate queries

Location:
trunk/ippTools/share
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/Makefile.am

    r15186 r15272  
    3838        difftool_todiffskyfile.sql \
    3939        difftool_revertdiffskyfile.sql \
    40         magictool_toprocess.sql \
     40        magictool_toprocess_inputs.sql \
     41        magictool_toprocess_tree.sql \
    4142        pztool_find_completed_exp.sql \
    4243        pztool_pendingimfile.sql \
  • trunk/ippTools/share/magictool_toprocess.sql

    r15271 r15272  
    33    -- convert magic_id into a boolean value (1 or 0)
    44    -- note that the type stays a 64 bit int
    5     magicNodeResult.magic_id IS TRUE as done
     5    magicNodeResult.magic_id IS TRUE as done,
     6    diffSkyfile.uri
     7FROM magicTree
     8JOIN magicRun
     9    USING(magic_id)
     10JOIN magicInputSkyfile
     11    USING(magic_id, node)
     12LEFT JOIN diffSkyfile
     13    using(diff_id)
     14LEFT JOIN magicNodeResult
     15    ON magicTree.magic_id = magicNodeResult.magic_id
     16    AND magicTree.node = magicNodeResult.node
     17WHERE
     18    magicRun.state = 'run'
     19UNION
     20SELECT
     21    magicTree.*,
     22    -- convert magic_id into a boolean value (1 or 0)
     23    -- note that the type stays a 64 bit int
     24    magicNodeResult.magic_id IS TRUE as done,
     25    magicNodeResult.uri
    626FROM magicTree
    727JOIN magicRun
Note: See TracChangeset for help on using the changeset viewer.