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/pstamptool.c

    r20151 r21402  
    231231                     " (state, uri, ds_id, fault)"
    232232                     " 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)) {
    234234        psError(PS_ERR_UNKNOWN, false, "database error");
    235235        return false;
     
    480480    // printf("Revert request %" PRId64 "\n", req_id);
    481481   
    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,
    487487        "UPDATE pstampRequest set state ='new', name=NULL, reqType=NULL, fault=0 where req_id = %" PRId64, req_id)) {
    488488        psError(PS_ERR_UNKNOWN, false, "database error");
     
    535535    }
    536536
    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)) {
    538538        psError(PS_ERR_UNKNOWN, false, "database error");
    539539        return false;
     
    705705        " WHERE job_id = %" PRId64;
    706706   
    707     if (!p_psDBRunQuery(config->dbh, query, state, faultStr, job_id)) {
     707    if (!p_psDBRunQueryF(config->dbh, query, state, faultStr, job_id)) {
    708708        psError(PS_ERR_UNKNOWN, false, "database error");
    709709        psFree(query);
Note: See TracChangeset for help on using the changeset viewer.