Changeset 26956
- Timestamp:
- Feb 15, 2010, 3:49:50 PM (16 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 3 edited
-
share/pubtool_definerun.sql (modified) (2 diffs)
-
src/pubtool.c (modified) (2 diffs)
-
src/pubtoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/pubtool_definerun.sql
r25929 r26956 2 2 SELECT 3 3 client_id, 4 stage_id 4 stage_id, 5 src_label 5 6 FROM ( 6 7 -- Get diffs to publish 7 8 SELECT 8 9 client_id, 9 diff_id AS stage_id 10 diff_id AS stage_id, 11 label AS src_label 10 12 FROM publishClient 11 13 JOIN diffRun … … 18 20 SELECT 19 21 client_id, 20 cam_id AS stage_id 22 cam_id AS stage_id, 23 label AS src_label 21 24 FROM publishClient 22 25 JOIN camRun -
trunk/ippTools/src/pubtool.c
r25932 r26956 156 156 // optional 157 157 PXOPT_COPY_S64(config->args, where, "-client_id", "client_id", "=="); 158 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 159 160 PXOPT_LOOKUP_STR(label, config->args, "-label", false, false); 158 pxAddLabelSearchArgs (config, where, "-label", "label", "=="); // define using newExp label 161 159 162 160 psString query = pxDataGet("pubtool_definerun.sql"); // Query to run … … 211 209 psS64 client = psMetadataLookupS64(NULL, row, "client_id"); // Client identifier 212 210 psS64 stage = psMetadataLookupS64(NULL, row, "stage_id"); // Stage identifier 211 char *label = psMetadataLookupStr(NULL, row, "src_label"); // label from correct source 213 212 214 213 if (!publishRunInsert(config->dbh, 0, client, stage, label, "new")) { -
trunk/ippTools/src/pubtoolConfig.c
r25929 r26956 62 62 psMetadata *definerunArgs = psMetadataAlloc(); 63 63 psMetadataAddS64(definerunArgs, PS_LIST_TAIL, "-client_id", 0, "search by client_id", 0); 64 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-label", 0, "set and search by label", NULL);64 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-label", PS_META_DUPLICATE_OK, "set and search by label", NULL); 65 65 66 66 // -pending
Note:
See TracChangeset
for help on using the changeset viewer.
