Changeset 28411 for trunk/ippTools/share/pubtool_pending.sql
- Timestamp:
- Jun 18, 2010, 4:04:27 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/share/pubtool_pending.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/pubtool_pending.sql
r28373 r28411 50 50 AND (camRun.magicked != 0 OR publishClient.magicked = 0) 51 51 -- WHERE hook %s 52 SELECT DISTINCT 53 publishRun.pub_id, 54 publishClient.product, 55 publishClient.stage, 56 publishClient.workdir, 57 diffPhotRun.diff_phot_id AS stage_id, 58 rawExp.camera, 59 rawExp.exp_id 60 FROM publishRun 61 JOIN publishClient USING(client_id) 62 JOIN diffPhotRun 63 ON diffPhotRun.diff_phot_id = publishRun.stage_id 64 JOIN diffRun USING(diff_id) 65 JOIN diffInputSkyfile USING(diff_id) 66 -- Need to do something fancy here to get the camera name for a stack 67 LEFT JOIN warpRun ON warpRun.warp_id = diffInputSkyfile.warp1 68 JOIN fakeRun USING(fake_id) 69 JOIN camRun USING(cam_id) 70 JOIN chipRun USING(chip_id) 71 JOIN rawExp USING(exp_id) 72 WHERE publishClient.stage = 'diffphot' 73 AND publishClient.active = 1 74 AND publishRun.state = 'new' 75 AND diffPhotRun.state IN ('full', 'cleaned', 'goto_cleaned') 76 AND (diffRun.diff_mode = 4 OR publishClient.magicked = 0) -- diffPhotRun doesn't respect magic 77 -- WHERE hook %s 52 78 ) AS publishToDo 53 79 LEFT JOIN publishDone USING(pub_id)
Note:
See TracChangeset
for help on using the changeset viewer.
