Changeset 23783
- Timestamp:
- Apr 9, 2009, 3:20:44 PM (17 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 2 edited
-
share/disttool_definebyquery_camera.sql (modified) (2 diffs)
-
src/disttool.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/disttool_definebyquery_camera.sql
r23765 r23783 1 1 SELECT 2 'cam ' as stage,2 'camera' as stage, 3 3 camRun.cam_id as stage_id, 4 4 rawExp.exp_name as run_tag, … … 16 16 AND rcInterest.state = 'enabled' 17 17 AND distRun.dist_id IS NULL -- no existing distRun 18 AND (( !distTarget.clean ANDcamRun.state = 'full') OR (distTarget.clean AND camRun.state = 'cleaned'))18 AND ((camRun.state = 'full') OR (distTarget.clean AND camRun.state = 'cleaned')) -
trunk/ippTools/src/disttool.c
r23777 r23783 157 157 158 158 psString query = NULL; 159 psString runType = NULL;159 psString magicRunType = NULL; 160 160 psString runJoinStr = NULL; 161 161 if (!strcmp(stage, "raw")) { 162 runType = "rawExp";162 magicRunType = "rawExp"; 163 163 runJoinStr = "rawExp.exp_id"; 164 164 query = pxDataGet("disttool_definebyquery_raw.sql"); … … 169 169 } 170 170 } else if (!strcmp(stage, "chip")) { 171 runType = "chipRun";171 magicRunType = "chipRun"; 172 172 runJoinStr = "chipRun.chip_id"; 173 173 query = pxDataGet("disttool_definebyquery_chip.sql"); … … 182 182 } 183 183 } else if (!strcmp(stage, "camera")) { 184 runType = "camRun";184 magicRunType = "chipRun"; // This is used below to set the magicked business 185 185 query = pxDataGet("disttool_definebyquery_camera.sql"); 186 186 if (!query) { … … 194 194 } 195 195 } else if (!strcmp(stage, "fake")) { 196 runType = "fakeRun";196 magicRunType = "fakeRun"; 197 197 query = pxDataGet("disttool_definebyquery_fake.sql"); 198 198 if (!query) { … … 208 208 no_magic = true; 209 209 } else if (!strcmp(stage, "warp")) { 210 runType = "warpRun";210 magicRunType = "warpRun"; 211 211 runJoinStr = "warpRun.warp_id"; 212 212 query = pxDataGet("disttool_definebyquery_warp.sql"); … … 222 222 223 223 } else if (!strcmp(stage, "diff")) { 224 runType = "diffRun";224 magicRunType = "diffRun"; 225 225 runJoinStr = "diffRun.diff_id"; 226 226 query = pxDataGet("disttool_definebyquery_diff.sql"); … … 236 236 237 237 } else if (!strcmp(stage, "stack")) { 238 runType = "stackRun";238 magicRunType = "stackRun"; 239 239 query = pxDataGet("disttool_definebyquery_stack.sql"); 240 240 if (!query) { … … 265 265 266 266 if (!no_magic) { 267 psStringAppend(&query, " AND (distTarget.clean OR %s.magicked)", runType);267 psStringAppend(&query, " AND (distTarget.clean OR %s.magicked)", magicRunType); 268 268 269 269 // is selecting by magic_ds_id really interesting?
Note:
See TracChangeset
for help on using the changeset viewer.
