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

    r19931 r21402  
    358358        // this insert needs to use exactly the same restrictions (race condition is probably not critical)
    359359        // the insert below seems to only restrict matches to the skycell, tess, and filter
    360         if ((randomLimit > 0 && !p_psDBRunQuery(config->dbh, thisInsert, skycell_id, filter, randomLimit)) ||
    361             (randomLimit <= 0 && !p_psDBRunQuery(config->dbh, thisInsert, skycell_id, filter))) {
     360        if ((randomLimit > 0 && !p_psDBRunQueryF(config->dbh, thisInsert, skycell_id, filter, randomLimit)) ||
     361            (randomLimit <= 0 && !p_psDBRunQueryF(config->dbh, thisInsert, skycell_id, filter))) {
    362362            psError(PS_ERR_UNKNOWN, false, "database error");
    363363            psFree(thisInsert);
     
    968968
    969969    char *query = "UPDATE stackRun SET state = '%s' WHERE stack_id = %"PRId64;
    970     if (!p_psDBRunQuery(config->dbh, query, state, stack_id)) {
     970    if (!p_psDBRunQueryF(config->dbh, query, state, stack_id)) {
    971971        psError(PS_ERR_UNKNOWN, false,
    972972                "failed to change state for stack_id %"PRId64, stack_id);
Note: See TracChangeset for help on using the changeset viewer.