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

    r20973 r21402  
    159159        psFree(where);
    160160
    161         if (!p_psDBRunQuery(config->dbh, query, whereClause)) {
     161        if (!p_psDBRunQueryF(config->dbh, query, whereClause)) {
    162162            psError(PS_ERR_UNKNOWN, false, "database error");
    163163            psFree(whereClause);
     
    215215
    216216
    217         if (!p_psDBRunQuery(config->dbh, query, magicSkyCellNumsWhere ? magicSkyCellNumsWhere : "")) {
     217        if (!p_psDBRunQueryF(config->dbh, query, magicSkyCellNumsWhere ? magicSkyCellNumsWhere : "")) {
    218218            psError(PS_ERR_UNKNOWN, false, "database error");
    219219            psFree(magicSkyCellNumsWhere);
     
    298298        }
    299299
    300         if (!p_psDBRunQuery(config->dbh, thisInsert, magic_id, exp_id)) {
     300        if (!p_psDBRunQueryF(config->dbh, thisInsert, magic_id, exp_id)) {
    301301            psError(PS_ERR_UNKNOWN, false, "database error");
    302302            psFree(thisInsert);
     
    560560    }
    561561
    562     if (!p_psDBRunQuery(config->dbh, query, magic_id)) {
     562    if (!p_psDBRunQueryF(config->dbh, query, magic_id)) {
    563563        psError(PS_ERR_UNKNOWN, false, "database error");
    564564        psFree(query);
     
    692692    psFree(where);
    693693
    694     if (!p_psDBRunQuery(config->dbh, query, magic_ds_id)) {
     694    if (!p_psDBRunQueryF(config->dbh, query, magic_ds_id)) {
    695695        psError(PS_ERR_UNKNOWN, false, "database error");
    696696        psFree(query);
     
    749749
    750750    char *query = "UPDATE magicDSRun SET state = '%s' WHERE magic_ds_id = %" PRId64;
    751     if (!p_psDBRunQuery(config->dbh, query, state, magic_ds_id)) {
     751    if (!p_psDBRunQueryF(config->dbh, query, state, magic_ds_id)) {
    752752        psError(PS_ERR_UNKNOWN, false,
    753753                "failed to change state for magic_id %" PRId64, magic_ds_id);
Note: See TracChangeset for help on using the changeset viewer.