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

    r20973 r21402  
    4141
    4242    char *query = "UPDATE warpRun SET state = '%s' WHERE warp_id = %" PRId64;
    43     if (!p_psDBRunQuery(config->dbh, query, state, warp_id)) {
     43    if (!p_psDBRunQueryF(config->dbh, query, state, warp_id)) {
    4444        psError(PS_ERR_UNKNOWN, false,
    4545                "failed to change state for warp_id %" PRId64, warp_id);
     
    7272    }
    7373
    74     if (!p_psDBRunQuery(config->dbh, query, state)) {
     74    if (!p_psDBRunQueryF(config->dbh, query, state)) {
    7575        psFree(query);
    7676        psError(PS_ERR_UNKNOWN, false, "database error");
     
    9090
    9191    char *query = "UPDATE warpRun SET warpRun.label = '%s' WHERE warp_id = %" PRId64;
    92     if (!p_psDBRunQuery(config->dbh, query, label, warp_id)) {
     92    if (!p_psDBRunQueryF(config->dbh, query, label, warp_id)) {
    9393        psError(PS_ERR_UNKNOWN, false,
    9494                "failed to change label for warp_id %" PRId64, warp_id);
     
    113113    }
    114114
    115     if (!p_psDBRunQuery(config->dbh, query, label)) {
     115    if (!p_psDBRunQueryF(config->dbh, query, label)) {
    116116        psFree(query);
    117117        psError(PS_ERR_UNKNOWN, false, "database error");
Note: See TracChangeset for help on using the changeset viewer.