Changeset 28339
- Timestamp:
- Jun 15, 2010, 1:57:07 PM (16 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 2 edited
- 1 moved
-
share/Makefile.am (modified) (1 diff)
-
share/camtool_pendingexp.sql (moved) (moved from trunk/ippTools/share/camtool_find_pendingexp.sql ) (3 diffs)
-
src/camtool.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/Makefile.am
r28266 r28339 18 18 addtool_revertminidvodbprocessed.sql \ 19 19 addtool_revertprocessedexp.sql \ 20 camtool_addprocessedexp.sql \ 20 21 camtool_donecleanup.sql \ 21 22 camtool_find_chip_id.sql \ 22 camtool_ find_pendingexp.sql \23 camtool_pendingexp.sql \ 23 24 camtool_find_pendingimfile.sql \ 24 25 camtool_find_processedexp.sql \ -
trunk/ippTools/share/camtool_pendingexp.sql
r28306 r28339 1 -- this query is used by both camtool -pendingexp & camtool -addprocessedexp it2 -- does a little more work then is necessary for -addprocessed but it seems3 -- "cleaner" to use the same query for both cases4 1 SELECT 5 2 camRun.*, … … 11 8 rawExp.filelevel, 12 9 chipRun.magicked AS chip_magicked, 13 camProcessedExp.path_base 10 camProcessedExp.path_base, 11 IFNULL(Label.priority, 10000) AS priority 14 12 FROM camRun 15 13 JOIN chipRun … … 21 19 LEFT JOIN camMask 22 20 ON camRun.label = camMask.label 21 LEFT JOIN Label 22 ON camRun.label = Label.label 23 23 WHERE 24 24 chipRun.state = 'full' 25 25 AND ((camRun.state = 'new' AND camProcessedExp.cam_id IS NULL) OR camRun.state = 'update') 26 26 AND camMask.label IS NULL 27 AND (Label.active OR Label.active IS NULL) -
trunk/ippTools/src/camtool.c
r28274 r28339 292 292 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 293 293 294 psString query = pxDataGet("camtool_ find_pendingexp.sql");294 psString query = pxDataGet("camtool_pendingexp.sql"); 295 295 if (!query) { 296 296 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); … … 305 305 } 306 306 psFree(where); 307 308 psStringAppend(&query, "\nORDER BY priority DESC, cam_id"); 307 309 308 310 // treat limit == 0 as "no limit" … … 531 533 PXOPT_COPY_S64(config->args, where, "-cam_id", "camRun.cam_id", "=="); 532 534 533 psString query = pxDataGet("camtool_ find_pendingexp.sql");535 psString query = pxDataGet("camtool_addprocessedexp.sql"); 534 536 if (!query) { 535 537 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement");
Note:
See TracChangeset
for help on using the changeset viewer.
