Changeset 29328 for trunk/ippTools/src/pstamptool.c
- Timestamp:
- Oct 5, 2010, 3:34:21 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pstamptool.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pstamptool.c
r29289 r29328 883 883 PXOPT_LOOKUP_S64(req_id, config->args, "-req_id", false, false); 884 884 PXOPT_LOOKUP_S64(dep_id, config->args, "-dep_id", false, false); 885 886 if (!job_id && !req_id && !dep_id) { 887 psError(PS_ERR_UNKNOWN, true, "at least one of -job_id -req_id or -dep_id is required"); 885 PXOPT_LOOKUP_S32(fault_count, config->args, "-fault_count", false, false); 886 887 if (!job_id && !req_id && !dep_id && !fault_count) { 888 psError(PS_ERR_UNKNOWN, true, "at least one of -job_id -req_id -dep_id or -fault_count is required"); 888 889 return false; 889 890 } … … 904 905 PXOPT_COPY_S32(config->args, where, "-fault", "pstampJob.fault", "=="); 905 906 PXOPT_COPY_STR(config->args, where, "-state", "pstampJob.state", "=="); 907 PXOPT_COPY_S32(config->args, where, "-fault_count", "pstampJob.fault_count", ">="); 908 pxAddLabelSearchArgs(config, where, "-label", "pstampRequest.label", "LIKE"); 906 909 907 910 psString query = pxDataGet("pstamptool_updatejob.sql"); … … 948 951 PXOPT_COPY_S64(config->args, where, "-dep_id", "dep_id", "=="); 949 952 PXOPT_COPY_S32(config->args, where, "-fault", "pstampDependent.fault", "=="); 953 pxAddLabelSearchArgs(config, where, "-label", "pstampRequest.label", "LIKE"); 954 // if (fault_count) { 955 PXOPT_COPY_S32(config->args, where, "-fault_count", "pstampDependent.fault_count", ">="); 956 // } 950 957 951 958 // XXX: How about selecting by pstampRequest.label? No. That is too dangerous by itself.
Note:
See TracChangeset
for help on using the changeset viewer.
