Changeset 24244 for branches/cnb_branches/cnb_branch_20090301/ippTools/src/dettool_processedimfile.c
- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ippTools/src (modified) (1 prop)
-
ippTools/src/dettool_processedimfile.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/ippTools/src
- Property svn:ignore
-
old new 33 33 pstamptool 34 34 disttool 35 receivetool
-
- Property svn:ignore
-
branches/cnb_branches/cnb_branch_20090301/ippTools/src/dettool_processedimfile.c
r23352 r24244 92 92 93 93 // default values 94 PXOPT_LOOKUP_S16( code, config->args, "-code", false, false);95 96 // Required if code== 097 PXOPT_LOOKUP_STR(uri, config->args, "-uri", ( code== 0), false);98 PXOPT_LOOKUP_STR(recipe, config->args, "-recip", ( code== 0), false);94 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 95 96 // Required if fault == 0 97 PXOPT_LOOKUP_STR(uri, config->args, "-uri", (fault == 0), false); 98 PXOPT_LOOKUP_STR(recipe, config->args, "-recip", (fault == 0), false); 99 99 100 100 // optional … … 144 144 user_5, 145 145 path_base, 146 "full",147 code146 "full", 147 fault 148 148 ); 149 149 psFree(rawImfiles); … … 190 190 psStringAppend(&query, " %s", whereClause); 191 191 psFree(whereClause); 192 hasWhere = true;192 hasWhere = true; 193 193 } 194 194 psFree (where); … … 196 196 // restrict search to included imfiles 197 197 if (included) { 198 if (hasWhere) {199 psStringAppend(&query, " AND detInputExp.include = 1");200 } else {201 psStringAppend(&query, " WHERE detInputExp.include = 1");202 }203 hasWhere = true;198 if (hasWhere) { 199 psStringAppend(&query, " AND detInputExp.include = 1"); 200 } else { 201 psStringAppend(&query, " WHERE detInputExp.include = 1"); 202 } 203 hasWhere = true; 204 204 } 205 205 206 206 if (hasWhere) { 207 psStringAppend(&query, " AND");207 psStringAppend(&query, " AND"); 208 208 } else { 209 psStringAppend(&query, " WHERE");209 psStringAppend(&query, " WHERE"); 210 210 } 211 211 212 212 if (faulted) { 213 213 // list only faulted rows 214 psStringAppend(&query, " %s", " detProcessedImfile.fault != 0");214 psStringAppend(&query, " %s", " detProcessedImfile.fault != 0"); 215 215 } else { 216 216 // don't list faulted rows … … 263 263 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 264 264 PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "=="); 265 PXOPT_COPY_S16(config->args, where, "- code", "fault", "==");265 PXOPT_COPY_S16(config->args, where, "-fault", "fault", "=="); 266 266 267 267 psString query = pxDataGet("dettool_revertprocessedimfile.sql"); … … 303 303 304 304 if (!setProcessedImfileDataState(config, det_id, exp_id, class_id, data_state)) { 305 return false;305 return false; 306 306 } 307 307 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
