Changeset 26213 for trunk/ippTools/src/pstamptool.c
- Timestamp:
- Nov 20, 2009, 11:53:20 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pstamptool.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pstamptool.c
r25793 r26213 774 774 PXOPT_COPY_S64(config->args, where, "-fault", "fault", "=="); 775 775 PXOPT_COPY_S64(config->args, where, "-req_id_min", "req_id", ">="); 776 776 777 PXOPT_LOOKUP_BOOL(all, config->args, "-all", false); 777 778 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 779 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 780 781 // By default only revert faults < 10 which are our "ipp exit codes" 782 // codes larger than that are the pstamp request interface. 783 // Don't fault those unless -fault waa provided 784 psString faultClause = ""; 785 if (!fault) { 786 faultClause = " \nAND (pstampJob.fault < 10)"; 787 } 778 788 779 789 psString query = pxDataGet("pstamptool_revertjob.sql"); … … 790 800 psFree(where); 791 801 792 if (!p_psDBRunQuery (config->dbh, query)) {802 if (!p_psDBRunQueryF(config->dbh, query, faultClause)) { 793 803 psError(PS_ERR_UNKNOWN, false, "database error"); 794 804 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
