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

    r21099 r21402  
    171171        }
    172172
    173         if (!p_psDBRunQuery(config->dbh, query, queryWhere)) {
     173        if (!p_psDBRunQueryF(config->dbh, query, queryWhere)) {
    174174            psError(PS_ERR_UNKNOWN, false, "database error");
    175175            psFree(queryWhere);
     
    255255        }
    256256
    257         if (!p_psDBRunQuery(config->dbh, thisInsert, magic_id, exp_id)) {
     257        if (!p_psDBRunQueryF(config->dbh, thisInsert, magic_id, exp_id)) {
    258258            psError(PS_ERR_UNKNOWN, false, "database error");
    259259            psFree(thisInsert);
     
    539539    if (code > 0) {
    540540        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)) {
    542542            psError(PS_ERR_UNKNOWN, false,
    543543                    "failed to set fault for magic_id %" PRId64, magic_id);
     
    795795        whereClause = new;
    796796    }
    797     if (!p_psDBRunQuery(config->dbh, query, whereClause ? whereClause :  "")) {
     797    if (!p_psDBRunQueryF(config->dbh, query, whereClause ? whereClause :  "")) {
    798798        psError(PS_ERR_UNKNOWN, false, "database error");
    799799        psFree(whereClause);
     
    14921492
    14931493    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)) {
    14951495        psError(PS_ERR_UNKNOWN, false,
    14961496                "failed to change state for magic_id %" PRId64, magic_id);
Note: See TracChangeset for help on using the changeset viewer.