IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 21, 2010, 2:45:13 PM (16 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/ippTools/share/magicdstool_todestreak_diff.sql

    r27945 r29515  
    77    rawExp.camera,
    88    magicMask.uri AS streaks_uri,
     9    magicMask.path_base AS streaks_path_base,
    910    CAST(NULL AS CHAR(255)) AS inv_streaks_uri,
     11    CAST(NULL AS CHAR(255)) AS inv_streaks_path_base,
    1012    stage,
    1113    magicRun.diff_id AS stage_id,
     
    2022    recoveryroot,
    2123    re_place,
    22     remove
     24    remove,
     25    IFNULL(Label.priority, 10000) AS priority
    2326FROM rawExp
    2427JOIN magicRun USING (exp_id)
     
    3336    ON magicDSRun.magic_ds_id = magicDSFile.magic_ds_id
    3437    AND magicDSFile.component = diffSkyfile.skycell_id
     38LEFT JOIN Label ON magicDSRun.label = Label.label
    3539WHERE
    3640    magicDSRun.state = 'new'
     
    4044    AND diffSkyfile.quality = 0
    4145    AND magicDSFile.component IS NULL
     46    AND (Label.active OR Label.active IS NULL)
    4247-- bothways diffSkyfiles
    4348UNION
     
    4954    rawExp.camera,
    5055    magicMask.uri AS streaks_uri,
     56    magicMask.path_base AS streaks_path_base,
    5157    (SELECT uri from magicMask where magic_id = inv_magic_id) AS inv_streaks_uri,
     58    (SELECT path_base from magicMask where magic_id = inv_magic_id) AS inv_streaks_path_base,
    5259    stage,
    5360    magicRun.diff_id AS stage_id,
     
    6269    recoveryroot,
    6370    re_place,
    64     remove
     71    remove,
     72    IFNULL(Label.priority, 10000) AS priority
    6573FROM rawExp
    6674JOIN magicRun USING (exp_id)
     
    7583    ON magicDSRun.magic_ds_id = magicDSFile.magic_ds_id
    7684    AND magicDSFile.component = diffSkyfile.skycell_id
     85LEFT JOIN Label ON magicDSRun.label = Label.label
    7786WHERE
    7887    magicDSRun.state = 'new'
     
    8291    AND diffSkyfile.quality = 0
    8392    AND magicDSFile.component IS NULL
     93    AND (Label.active OR Label.active IS NULL)
    8494) AS magicDSRun
    8595-- we need the following so this query is compatible with the other stages
Note: See TracChangeset for help on using the changeset viewer.