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

    r19988 r21402  
    968968    }
    969969
    970     if (!p_psDBRunQuery(config->dbh, query, (long long) newDet_id, (long long) det_id, iteration)) {
     970    if (!p_psDBRunQueryF(config->dbh, query, (long long) newDet_id, (long long) det_id, iteration)) {
    971971        psError(PS_ERR_UNKNOWN, false, "database error");
    972972        psFree(query);
     
    17331733
    17341734    char *query = "UPDATE detRun SET iteration = iteration + 1 WHERE det_id = %" PRId64;
    1735     if (!p_psDBRunQuery(config->dbh, query, det_id)) {
     1735    if (!p_psDBRunQueryF(config->dbh, query, det_id)) {
    17361736        psError(PS_ERR_UNKNOWN, false,
    17371737                "failed to increment iteration for det_id %" PRId64, det_id);
     
    17731773
    17741774    char *query = "UPDATE detRun SET state = '%s' WHERE det_id = %" PRId64;
    1775     if (!p_psDBRunQuery(config->dbh, query, state, det_id)) {
     1775    if (!p_psDBRunQueryF(config->dbh, query, state, det_id)) {
    17761776        psError(PS_ERR_UNKNOWN, false, "failed to change state for det_id %" PRId64, det_id);
    17771777        return false;
     
    18351835        " AND exp_id = %" PRId64
    18361836        " AND class_id = '%s'";
    1837     if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, exp_id, class_id)) {
     1837    if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, exp_id, class_id)) {
    18381838        psError(PS_ERR_UNKNOWN, false,
    18391839                "failed to change state for det_id %" PRId64 ", exp_id %" PRId64 ", class_id %s",
     
    18551855        " WHERE det_id = %" PRId64
    18561856        " AND exp_id = %" PRId64;
    1857     if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, exp_id)) {
     1857    if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, exp_id)) {
    18581858        psError(PS_ERR_UNKNOWN, false,
    18591859                "failed to change state for det_id %" PRId64 ", exp_id %" PRId64,
     
    18781878        " AND iteration = %" PRId32
    18791879        " AND class_id = %s";
    1880     if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, iteration, class_id)) {
     1880    if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration, class_id)) {
    18811881        psError(PS_ERR_UNKNOWN, false,
    18821882                "failed to change state for det_id %" PRId64 ", iteration %" PRId32 "class_id %s",
     
    19001900        " AND iteration = %" PRId32
    19011901        " AND class_id = %s";
    1902     if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, iteration)) {
     1902    if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration)) {
    19031903        psError(PS_ERR_UNKNOWN, false,
    19041904                "failed to change state for det_id %" PRId64 ", iteration %" PRId32,
     
    19221922        " AND iteration = %" PRId32
    19231923        " AND class_id = %s";
    1924     if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, iteration, class_id)) {
     1924    if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration, class_id)) {
    19251925        psError(PS_ERR_UNKNOWN, false,
    19261926                "failed to change state for det_id %" PRId64 ", iteration %" PRId32 " class %s",
     
    19421942        " WHERE det_id = %" PRId64
    19431943        " AND iteration = %" PRId32;
    1944     if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, iteration)) {
     1944    if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration)) {
    19451945        psError(PS_ERR_UNKNOWN, false,
    19461946                "failed to change state for det_id %" PRId64 ", iteration %" PRId32,
     
    19651965        " AND exp_id = %" PRId64
    19661966        " AND class_id = '%s'";
    1967     if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, iteration, exp_id, class_id)) {
     1967    if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration, exp_id, class_id)) {
    19681968        psError(PS_ERR_UNKNOWN, false,
    19691969                "failed to change state for det_id %" PRId64 ", iteration %" PRId32 ", exp_id %" PRId64 ", class_id %s",
     
    19861986        " AND iteration = %" PRId32
    19871987        " AND exp_id = %" PRId64;
    1988     if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, iteration, exp_id)) {
     1988    if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration, exp_id)) {
    19891989        psError(PS_ERR_UNKNOWN, false,
    19901990                "failed to change state for det_id %" PRId64 ", iteration %" PRId32 ", exp_id %" PRId64,
Note: See TracChangeset for help on using the changeset viewer.