Changeset 21402 for trunk/ippTools/src/difftool.c
- Timestamp:
- Feb 6, 2009, 3:25:03 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/difftool.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/difftool.c
r21399 r21402 207 207 psString tess_id = NULL; 208 208 if (warp1) { 209 if (!p_psDBRunQuery (config->dbh, "SELECT * from diffRun WHERE diff_id = %" PRId64, diff_id)) {209 if (!p_psDBRunQueryF(config->dbh, "SELECT * from diffRun WHERE diff_id = %" PRId64, diff_id)) { 210 210 psError(PS_ERR_UNKNOWN, false, "database error"); 211 211 return false; … … 249 249 } 250 250 251 if (!p_psDBRunQuery (config->dbh, "SELECT count(diff_id) FROM diffRun JOIN diffInputSkyfile USING(diff_id) WHERE diff_id = %" PRId64, diff_id)) {251 if (!p_psDBRunQueryF(config->dbh, "SELECT count(diff_id) FROM diffRun JOIN diffInputSkyfile USING(diff_id) WHERE diff_id = %" PRId64, diff_id)) { 252 252 if (!psDBRollback(config->dbh)) { 253 253 psError(PS_ERR_UNKNOWN, false, "database error"); … … 355 355 } 356 356 357 if (!p_psDBRunQuery (config->dbh, query, whereClause, whereClause, whereClause, whereClause)) {357 if (!p_psDBRunQueryF(config->dbh, query, whereClause, whereClause, whereClause, whereClause)) { 358 358 psError(PS_ERR_UNKNOWN, false, "database error"); 359 359 psFree(whereClause); … … 737 737 738 738 char *query = "UPDATE diffRun SET state = '%s' WHERE diff_id = %"PRId64; 739 if (!p_psDBRunQuery (config->dbh, query, state, diff_id)) {739 if (!p_psDBRunQueryF(config->dbh, query, state, diff_id)) { 740 740 psError(PS_ERR_UNKNOWN, false, 741 741 "failed to change state for diff_id %"PRId64, diff_id); … … 829 829 830 830 char *query = "UPDATE diffRun SET state = 'new' WHERE diff_id = '%" PRId64 "'"; 831 if (!p_psDBRunQuery (config->dbh, query, run->diff_id)) {831 if (!p_psDBRunQueryF(config->dbh, query, run->diff_id)) { 832 832 if (!psDBRollback(config->dbh)) { 833 833 psError(PS_ERR_UNKNOWN, false, "database error"); … … 999 999 1000 1000 1001 if (!p_psDBRunQuery (config->dbh, query, warpQuery, expQuery, diffQuery)) {1001 if (!p_psDBRunQueryF(config->dbh, query, warpQuery, expQuery, diffQuery)) { 1002 1002 psError(PS_ERR_UNKNOWN, false, "database error"); 1003 1003 psFree(query); … … 1098 1098 return false; 1099 1099 } 1100 if (!p_psDBRunQuery (config->dbh, skycell_query, stackQuery, warp_id, filter, warpQuery)) {1100 if (!p_psDBRunQueryF(config->dbh, skycell_query, stackQuery, warp_id, filter, warpQuery)) { 1101 1101 psError(PS_ERR_UNKNOWN, false, "database error"); 1102 1102 psFree(warpQuery);
Note:
See TracChangeset
for help on using the changeset viewer.
