Changeset 16571 for branches/eam_branch_20080219/ippTools/src/chiptool.c
- Timestamp:
- Feb 21, 2008, 2:14:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080219/ippTools/src/chiptool.c
r16253 r16571 504 504 505 505 if (psDBAffectedRows(config->dbh) < 1) { 506 psError(PS_ERR_UNKNOWN, false, "should have affected at least 1 row");506 psError(PS_ERR_UNKNOWN, false, "should have affected at least 1 row"); 507 507 return false; 508 508 } … … 545 545 PS_ASSERT_PTR_NON_NULL(config, false); 546 546 547 psMetadata *where = psMetadataAlloc(); 548 549 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 550 551 if (where->list->n < 1) { 552 psFree(where); 553 where = NULL; 554 } 555 547 556 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 548 557 549 558 psString query = psStringCopy("SELECT * FROM chipMask"); 559 560 if (where) { 561 psString whereClause = psDBGenerateWhereSQL(where, NULL); 562 psFree(where); 563 psStringAppend(&query, " %s", whereClause); 564 psFree(whereClause); 565 } 550 566 551 567 if (!p_psDBRunQuery(config->dbh, query)) {
Note:
See TracChangeset
for help on using the changeset viewer.
