Changeset 30387 for trunk/ippTools/share/disttool_pending_raw.sql
- Timestamp:
- Jan 27, 2011, 9:42:21 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/share/disttool_pending_raw.sql (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/disttool_pending_raw.sql
r27457 r30387 17 17 0 as quality, 18 18 distRun.no_magic, 19 rawImfile.magicked 19 rawImfile.magicked, 20 IFNULL(Label.priority, 10000) AS priority 20 21 FROM distRun 21 22 JOIN distTarget USING(target_id, stage, clean) … … 28 29 ON distRun.dist_id = distComponent.dist_id 29 30 AND rawImfile.class_id = distComponent.component 31 LEFT JOIN Label ON distRun.label = Label.label 30 32 WHERE 31 33 distRun.state = 'new' … … 34 36 AND distComponent.dist_id IS NULL 35 37 AND (rawExp.magicked OR distRun.no_magic) 38 AND (Label.active OR Label.active IS NULL) 36 39 UNION 37 40 -- raw stage alternate inputs … … 54 57 0 as quality, 55 58 distRun.no_magic, 56 rawImfile.magicked 59 rawImfile.magicked, 60 IFNULL(Label.priority, 10000) AS priority 57 61 FROM distRun 58 62 JOIN distTarget USING(target_id, stage, clean) … … 68 72 ON distRun.dist_id = distComponent.dist_id 69 73 AND rawImfile.class_id = distComponent.component 74 LEFT JOIN Label ON distRun.label = Label.label 70 75 WHERE 71 76 distRun.state = 'new' … … 74 79 AND chipProcessedImfile.data_state = 'full' 75 80 AND chipProcessedImfile.magicked > 0 81 AND (Label.active OR Label.active IS NULL) 76 82 UNION 77 83 -- raw stage clean (dbinfo only) … … 93 99 0 as quality, 94 100 distRun.no_magic, 95 rawExp.magicked 101 rawExp.magicked, 102 IFNULL(Label.priority, 10000) AS priority 96 103 FROM distRun 97 104 JOIN distTarget USING(target_id, stage, clean) … … 99 106 LEFT JOIN distComponent 100 107 ON distRun.dist_id = distComponent.dist_id 108 LEFT JOIN Label ON distRun.label = Label.label 101 109 WHERE 102 110 distRun.state = 'new' … … 104 112 AND distRun.clean 105 113 AND distComponent.dist_id IS NULL 114 AND (Label.active OR Label.active IS NULL)
Note:
See TracChangeset
for help on using the changeset viewer.
