Changeset 24460 for trunk/ippTools/src
- Timestamp:
- Jun 17, 2009, 10:04:29 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/disttool.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/disttool.c
r24425 r24460 488 488 PXOPT_COPY_STR(config->args, where, "-state", "state", "=="); 489 489 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 490 PXOPT_COPY_S16(config->args, where, "-fault", "fault", "=="); 490 491 // we need to disambiguate fault so make a copy of the where list before adding fault 492 psMetadata *whereComponent = psMetadataCopy(NULL, where); 493 PXOPT_COPY_S16(config->args, where, "-fault", "distRun.fault", "=="); 494 PXOPT_COPY_S16(config->args, whereComponent, "-fault", "distComponent.fault", "=="); 491 495 492 496 // It might be useful to be able to query by the parameters of the underlying runs … … 533 537 534 538 numUpdated = psDBAffectedRows(config->dbh); 535 536 #ifdef notdef537 // don't need this. distRun.state may still be in 'new' state538 if (numUpdated < 1) {539 psError(PS_ERR_UNKNOWN, false, "should have affected at least 1 row");540 if (!psDBRollback(config->dbh)) {541 psError(PS_ERR_UNKNOWN, false, "database error");542 }543 return false;544 }545 #endif546 539 } 547 540 … … 560 553 } 561 554 562 if (psListLength(where ->list)) {563 psString whereClause = psDBGenerateWhereConditionSQL(where , NULL);555 if (psListLength(whereComponent->list)) { 556 psString whereClause = psDBGenerateWhereConditionSQL(whereComponent, NULL); 564 557 psStringAppend(&query, " AND %s", whereClause); 565 558 psFree(whereClause); … … 582 575 583 576 psFree(where); 577 psFree(whereComponent); 584 578 585 579 if (!psDBCommit(config->dbh)) {
Note:
See TracChangeset
for help on using the changeset viewer.
