IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 6, 2009, 3:25:03 PM (17 years ago)
Author:
eugene
Message:

converting to the new formatting version of p_psDBRunQueryF where appropriate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/difftool.c

    r21399 r21402  
    207207    psString tess_id = NULL;
    208208    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)) {
    210210            psError(PS_ERR_UNKNOWN, false, "database error");
    211211            return false;
     
    249249    }
    250250
    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)) {
    252252        if (!psDBRollback(config->dbh)) {
    253253            psError(PS_ERR_UNKNOWN, false, "database error");
     
    355355    }
    356356
    357     if (!p_psDBRunQuery(config->dbh, query, whereClause, whereClause, whereClause, whereClause)) {
     357    if (!p_psDBRunQueryF(config->dbh, query, whereClause, whereClause, whereClause, whereClause)) {
    358358        psError(PS_ERR_UNKNOWN, false, "database error");
    359359        psFree(whereClause);
     
    737737
    738738    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)) {
    740740        psError(PS_ERR_UNKNOWN, false,
    741741                "failed to change state for diff_id %"PRId64, diff_id);
     
    829829
    830830    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)) {
    832832        if (!psDBRollback(config->dbh)) {
    833833            psError(PS_ERR_UNKNOWN, false, "database error");
     
    999999
    10001000
    1001     if (!p_psDBRunQuery(config->dbh, query, warpQuery, expQuery, diffQuery)) {
     1001    if (!p_psDBRunQueryF(config->dbh, query, warpQuery, expQuery, diffQuery)) {
    10021002        psError(PS_ERR_UNKNOWN, false, "database error");
    10031003        psFree(query);
     
    10981098            return false;
    10991099        }
    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)) {
    11011101            psError(PS_ERR_UNKNOWN, false, "database error");
    11021102            psFree(warpQuery);
Note: See TracChangeset for help on using the changeset viewer.