Changeset 21402 for trunk/ippTools/src/pstamptool.c
- Timestamp:
- Feb 6, 2009, 3:25:03 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pstamptool.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pstamptool.c
r20151 r21402 231 231 " (state, uri, ds_id, fault)" 232 232 " VALUES( 'new', '%s', %" PRId64 ", 0 )"; 233 if (!p_psDBRunQuery (config->dbh, query, uri, ds_id)) {233 if (!p_psDBRunQueryF(config->dbh, query, uri, ds_id)) { 234 234 psError(PS_ERR_UNKNOWN, false, "database error"); 235 235 return false; … … 480 480 // printf("Revert request %" PRId64 "\n", req_id); 481 481 482 if (!p_psDBRunQuery (config->dbh, "DELETE FROM pstampJob where req_id = %" PRId64, req_id)) {483 psError(PS_ERR_UNKNOWN, false, "database error"); 484 return false; 485 } 486 if (!p_psDBRunQuery (config->dbh,482 if (!p_psDBRunQueryF(config->dbh, "DELETE FROM pstampJob where req_id = %" PRId64, req_id)) { 483 psError(PS_ERR_UNKNOWN, false, "database error"); 484 return false; 485 } 486 if (!p_psDBRunQueryF(config->dbh, 487 487 "UPDATE pstampRequest set state ='new', name=NULL, reqType=NULL, fault=0 where req_id = %" PRId64, req_id)) { 488 488 psError(PS_ERR_UNKNOWN, false, "database error"); … … 535 535 } 536 536 537 if (!p_psDBRunQuery (config->dbh, query, req_id, rownum, stateString, job_type, uri, exp_id, outputBase, fault, argString)) {537 if (!p_psDBRunQueryF(config->dbh, query, req_id, rownum, stateString, job_type, uri, exp_id, outputBase, fault, argString)) { 538 538 psError(PS_ERR_UNKNOWN, false, "database error"); 539 539 return false; … … 705 705 " WHERE job_id = %" PRId64; 706 706 707 if (!p_psDBRunQuery (config->dbh, query, state, faultStr, job_id)) {707 if (!p_psDBRunQueryF(config->dbh, query, state, faultStr, job_id)) { 708 708 psError(PS_ERR_UNKNOWN, false, "database error"); 709 709 psFree(query);
Note:
See TracChangeset
for help on using the changeset viewer.
