Changeset 23688 for trunk/ippTools/src/dettool_processedimfile.c
- Timestamp:
- Apr 2, 2009, 2:51:37 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTools/src/dettool_processedimfile.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/pap (added) merged: 23511,23520-23521,23532,23578-23581,23596-23599,23603-23604,23606-23608,23619-23621,23638-23639,23641,23646-23648,23651-23653,23656,23672-23674,23677-23684
- Property svn:mergeinfo changed
-
trunk/ippTools/src/dettool_processedimfile.c
r23229 r23688 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.
