Changeset 21402 for trunk/ippTools/src/magictool.c
- Timestamp:
- Feb 6, 2009, 3:25:03 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/magictool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/magictool.c
r21099 r21402 171 171 } 172 172 173 if (!p_psDBRunQuery (config->dbh, query, queryWhere)) {173 if (!p_psDBRunQueryF(config->dbh, query, queryWhere)) { 174 174 psError(PS_ERR_UNKNOWN, false, "database error"); 175 175 psFree(queryWhere); … … 255 255 } 256 256 257 if (!p_psDBRunQuery (config->dbh, thisInsert, magic_id, exp_id)) {257 if (!p_psDBRunQueryF(config->dbh, thisInsert, magic_id, exp_id)) { 258 258 psError(PS_ERR_UNKNOWN, false, "database error"); 259 259 psFree(thisInsert); … … 539 539 if (code > 0) { 540 540 char *query = "UPDATE magicRun SET fault = %d, state = 'stop' WHERE magic_id = %" PRId64; 541 if (!p_psDBRunQuery (config->dbh, query, code, magic_id)) {541 if (!p_psDBRunQueryF(config->dbh, query, code, magic_id)) { 542 542 psError(PS_ERR_UNKNOWN, false, 543 543 "failed to set fault for magic_id %" PRId64, magic_id); … … 795 795 whereClause = new; 796 796 } 797 if (!p_psDBRunQuery (config->dbh, query, whereClause ? whereClause : "")) {797 if (!p_psDBRunQueryF(config->dbh, query, whereClause ? whereClause : "")) { 798 798 psError(PS_ERR_UNKNOWN, false, "database error"); 799 799 psFree(whereClause); … … 1492 1492 1493 1493 char *query = "UPDATE magicRun SET state = '%s' WHERE magic_id = %" PRId64; 1494 if (!p_psDBRunQuery (config->dbh, query, state, magic_id)) {1494 if (!p_psDBRunQueryF(config->dbh, query, state, magic_id)) { 1495 1495 psError(PS_ERR_UNKNOWN, false, 1496 1496 "failed to change state for magic_id %" PRId64, magic_id);
Note:
See TracChangeset
for help on using the changeset viewer.
