Changeset 26981 for trunk/ippTools/src/dettool_correction.c
- Timestamp:
- Feb 17, 2010, 4:40:03 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/dettool_correction.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/dettool_correction.c
r20377 r26981 34 34 PXOPT_LOOKUP_STR(label, config->args, "-label", false, false); 35 35 36 // build the needed where 36 // build the needed where 37 37 psMetadata *where = psMetadataAlloc(); 38 38 psMetadataAddS64(where, PS_LIST_TAIL, "det_id", 0, "==", ref_det_id); … … 88 88 detRun->solang_max, 89 89 use_label, 90 detRun->det_id, // ref_det_id91 detRun->iteration // ref_iter90 detRun->det_id, // ref_det_id 91 detRun->iteration // ref_iter 92 92 ); 93 93 psFree(runs); … … 140 140 psString query = pxDataGet("dettool_tocorrectimfile.sql"); 141 141 if (!query) { 142 psError(PXTOOLS_ERR_ DATA, false, "failed to retreive SQL statement");142 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); 143 143 return false; 144 144 } 145 145 146 146 if (psListLength(where->list)) { 147 // NOTE the SQL uses an intermediate table 'det1' for this query148 psString whereClause = psDBGenerateWhereConditionSQL(where, "det1"); 147 // NOTE the SQL uses an intermediate table 'det1' for this query 148 psString whereClause = psDBGenerateWhereConditionSQL(where, "det1"); 149 149 psStringAppend(&query, " AND %s", whereClause); 150 150 psFree(whereClause); … … 198 198 psString query = pxDataGet("dettool_tocorrectexp.sql"); 199 199 if (!query) { 200 psError(PXTOOLS_ERR_ DATA, false, "failed to retreive SQL statement");200 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); 201 201 return false; 202 202 } … … 248 248 return false; 249 249 } 250 250 251 251 // automatically stop completed 'correct' detRuns 252 252 psString query = pxDataGet("dettool_stop_completed_correct_runs.sql"); 253 253 if (!query) { 254 psError(PXTOOLS_ERR_ DATA, false, "failed to retreive SQL statement");254 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); 255 255 return false; 256 256 }
Note:
See TracChangeset
for help on using the changeset viewer.
