Changeset 24125 for trunk/ippTools/src/receivetool.c
- Timestamp:
- May 9, 2009, 2:19:48 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/receivetool.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/receivetool.c
r24109 r24125 238 238 psFree(output); 239 239 240 if (!receiveFilesetInsert(config->dbh, 0, source_id, fileset, "reg", NULL, 0)) {240 if (!receiveFilesetInsert(config->dbh, 0, source_id, fileset, "reg", NULL, NULL, 0)) { 241 241 psError(PS_ERR_UNKNOWN, false, "Unable to add fileset"); 242 242 psFree(source_id_str); … … 512 512 if (psListLength(where->list)) { 513 513 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL); 514 psStringAppend(&query, " WHERE%s", whereClause);514 psStringAppend(&query, " AND %s", whereClause); 515 515 psFree(whereClause); 516 516 } … … 592 592 // to chanage 593 593 PXOPT_LOOKUP_S32(fault, config->args, "-fault", false, false); 594 PXOPT_LOOKUP_STR(dbinfo_uri, config->args, "-dbinfo_uri", false, false); 594 PXOPT_LOOKUP_STR(destdir, config->args, "-destdir", false, false); 595 PXOPT_LOOKUP_STR(dirinfo, config->args, "-dirinfo", false, false); 596 PXOPT_LOOKUP_STR(dbinfo, config->args, "-dbinfo", false, false); 595 597 PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, false); 596 598 597 if (!fault && !d binfo_uri&& !state) {598 psError(PS_ERR_UNKNOWN, true, " one of -fault, -dbinfo_uri, -set_state are required");599 if (!fault && !dirinfo &&!dbinfo && !state) { 600 psError(PS_ERR_UNKNOWN, true, "at least one of -fault, -dirinfo, -dbinfo, -set_state are required"); 599 601 return false; 600 602 } … … 608 610 sep = ","; 609 611 } 610 if (dbinfo_uri) { 611 psStringAppend(&query, "%s dbinfo_uri = '%s'", sep, dbinfo_uri); 612 if (dirinfo) { 613 psStringAppend(&query, "%s dirinfo = '%s'", sep, dirinfo); 614 sep = ","; 615 } 616 if (dbinfo) { 617 psStringAppend(&query, "%s dbinfo = '%s'", sep, dbinfo); 612 618 sep = ","; 613 619 }
Note:
See TracChangeset
for help on using the changeset viewer.
