Changeset 23688 for trunk/ippTools/src/dettool_detrunsummary.c
- Timestamp:
- Apr 2, 2009, 2:51:37 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTools/src/dettool_detrunsummary.c (modified) (9 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_detrunsummary.c
r21402 r23688 101 101 102 102 // default values 103 PXOPT_LOOKUP_S16( code, config->args, "-code", false, false);103 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 104 104 PXOPT_LOOKUP_BOOL(accept, config->args, "-accept", false); 105 105 … … 107 107 det_id, 108 108 iteration, 109 "full",109 "full", 110 110 bg, 111 111 bg_stdev, 112 112 bg_mean_stdev, 113 113 accept, 114 code114 fault 115 115 ); 116 116 } … … 120 120 { 121 121 PS_ASSERT_PTR_NON_NULL(config, false); 122 122 123 123 // build a query to search by det_id, iteration, exp_id 124 124 psMetadata *where = psMetadataAlloc(); … … 129 129 PXOPT_LOOKUP_BOOL(again, config->args, "-again", false); 130 130 131 // The values supplied as arguments on the command (eg, -bg) are parsed 132 // by mdToDetRunSummary below. 131 // The values supplied as arguments on the command (eg, -bg) are parsed 132 // by mdToDetRunSummary below. 133 133 // XXX why is there ever more than one? 134 134 … … 141 141 if (psListLength(where->list)) { 142 142 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL); 143 psStringAppend(&query, " WHERE %s", whereClause);144 psFree(whereClause);143 psStringAppend(&query, " WHERE %s", whereClause); 144 psFree(whereClause); 145 145 } 146 146 psFree(where); … … 199 199 psFree(output); 200 200 201 // XXX this logic does not deal with the case of - codebeing set202 // XXX it should be an error for -again and - codeto both be set201 // XXX this logic does not deal with the case of -fault being set 202 // XXX it should be an error for -again and -fault to both be set 203 203 if (again) { 204 204 if (!startNewIteration(config, det_id)) { … … 306 306 PXOPT_COPY_S64(config->args, where, "-det_id", "det_id", "=="); 307 307 PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "=="); 308 PXOPT_COPY_STR(config->args, where, "- code", "fault", "==");308 PXOPT_COPY_STR(config->args, where, "-fault", "fault", "=="); 309 309 310 310 psString query = pxDataGet("dettool_revertdetrunsummary.sql"); … … 340 340 { 341 341 PS_ASSERT_PTR_NON_NULL(config, false); 342 342 343 343 PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); // required 344 344 PXOPT_LOOKUP_BOOL(accept, config->args, "-accept", false); … … 355 355 } 356 356 357 char *query = "UPDATE detRunSummary SET accept = %d WHERE det_id = %"PRId64; 357 char *query = "UPDATE detRunSummary SET accept = %d WHERE det_id = %"PRId64; 358 358 if (!p_psDBRunQueryF(config->dbh, query, accept, det_id)) { 359 359 psError(PS_ERR_UNKNOWN, false, "database error");
Note:
See TracChangeset
for help on using the changeset viewer.
