Changeset 23532 for branches/pap/ippTools/src/dettool_residexp.c
- Timestamp:
- Mar 25, 2009, 12:48:19 PM (17 years ago)
- File:
-
- 1 edited
-
branches/pap/ippTools/src/dettool_residexp.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/ippTools/src/dettool_residexp.c
r19092 r23532 95 95 PXOPT_LOOKUP_S32(iteration, config->args, "-iteration", false, false); 96 96 PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", true, false); // required 97 PXOPT_LOOKUP_S16( code, config->args, "-code", false, false);98 PXOPT_LOOKUP_STR(recipe, config->args, "-recip", ( code == 0), false); // Required if code== 097 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 98 PXOPT_LOOKUP_STR(recipe, config->args, "-recip", (fault == 0), false); // Required if fault == 0 99 99 PXOPT_LOOKUP_F64(bg, config->args, "-bg", false, false); 100 100 PXOPT_LOOKUP_F64(bg_stdev, config->args, "-bg_stdev", false, false); … … 124 124 125 125 if (psListLength(where->list)) { 126 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);127 psStringAppend(&query, " WHERE %s", whereClause);128 psFree(whereClause);126 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL); 127 psStringAppend(&query, " WHERE %s", whereClause); 128 psFree(whereClause); 129 129 } 130 130 psFree(where); … … 151 151 152 152 if (!detResidExpInsert( 153 config->dbh,153 config->dbh, 154 154 det_id, 155 155 iteration, … … 174 174 user_5, 175 175 path_base, 176 "full",176 "full", 177 177 !reject, 178 code178 fault 179 179 )) { 180 180 psError(PS_ERR_UNKNOWN, false, "database error"); … … 225 225 if (reject) { 226 226 psStringAppend(&query, " %s", "AND detResidExp.accept != 0"); 227 } 227 } 228 228 229 229 // treat limit == 0 as "no limit" … … 273 273 PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "=="); 274 274 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 275 PXOPT_COPY_S16(config->args, where, "- code", "fault", "==");275 PXOPT_COPY_S16(config->args, where, "-fault", "fault", "=="); 276 276 277 277 psString query = pxDataGet("dettool_revertresidexp.sql"); … … 330 330 PXOPT_LOOKUP_STR(data_state, config->args, "-data_state", false, false); 331 331 if (data_state) { 332 if (!isValidDataState (data_state)) return false;332 if (!isValidDataState (data_state)) return false; 333 333 } 334 334
Note:
See TracChangeset
for help on using the changeset viewer.
