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

    r20542 r21402  
    134134
    135135    char *query = "UPDATE camRun SET state = '%s' WHERE cam_id = %" PRId64;
    136     if (!p_psDBRunQuery(config->dbh, query, state, cam_id)) {
     136    if (!p_psDBRunQueryF(config->dbh, query, state, cam_id)) {
    137137        psError(PS_ERR_UNKNOWN, false,
    138138                "failed to change state for cam_id %" PRId64, cam_id);
     
    164164    }
    165165
    166     if (!p_psDBRunQuery(config->dbh, query, state)) {
     166    if (!p_psDBRunQueryF(config->dbh, query, state)) {
    167167        psFree(query);
    168168        psError(PS_ERR_UNKNOWN, false, "database error");
     
    182182
    183183    char *query = "UPDATE camRun SET camRun.label = '%s' WHERE cam_id = %" PRId64;
    184     if (!p_psDBRunQuery(config->dbh, query, label, cam_id)) {
     184    if (!p_psDBRunQueryF(config->dbh, query, label, cam_id)) {
    185185        psError(PS_ERR_UNKNOWN, false,
    186186                "failed to change state for cam_id %" PRId64, cam_id);
     
    204204    }
    205205
    206     if (!p_psDBRunQuery(config->dbh, query, label)) {
     206    if (!p_psDBRunQueryF(config->dbh, query, label)) {
    207207        psFree(query);
    208208        psError(PS_ERR_UNKNOWN, false, "database error");
     
    242242    // XXX chip_id is being cast here work around psS64 have a different type
    243243    // different on 32/64
    244     if (!p_psDBRunQuery(config->dbh, query,
     244    if (!p_psDBRunQueryF(config->dbh, query,
    245245                "new", // state
    246246                workdir  ? workdir  : "NULL",
Note: See TracChangeset for help on using the changeset viewer.