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

    r21308 r21402  
    746746        psS64 warp_id = item->data.S64;
    747747
    748         if (!p_psDBRunQuery(config->dbh, query, warp_id, skycell_id)) {
     748        if (!p_psDBRunQueryF(config->dbh, query, warp_id, skycell_id)) {
    749749            psError(PS_ERR_UNKNOWN, false, "database error");
    750750            return false;
     
    13851385    char *query = "DELETE FROM warpMask WHERE label = '%s'";
    13861386
    1387     if (!p_psDBRunQuery(config->dbh, query, label)) {
     1387    if (!p_psDBRunQueryF(config->dbh, query, label)) {
    13881388        psError(PS_ERR_UNKNOWN, false, "database error");
    13891389        return false;
     
    16201620
    16211621    // note only updates if warpRun.state = run_state
    1622     if (!p_psDBRunQuery(config->dbh, query, data_state, warp_id, skycell_id, run_state)) {
     1622    if (!p_psDBRunQueryF(config->dbh, query, data_state, warp_id, skycell_id, run_state)) {
    16231623        psError(PS_ERR_UNKNOWN, false, "database error");
    16241624        // rollback
     
    16321632
    16331633    query = pxDataGet("warptool_change_run_state.sql");
    1634     if (!p_psDBRunQuery(config->dbh, query, data_state, warp_id, data_state)) {
     1634    if (!p_psDBRunQueryF(config->dbh, query, data_state, warp_id, data_state)) {
    16351635        // rollback
    16361636        if (!psDBRollback(config->dbh)) {
     
    16721672    psString query = pxDataGet("warptool_updateskyfile.sql");
    16731673
    1674     if (!p_psDBRunQuery(config->dbh, query, code, warp_id, skycell_id)) {
     1674    if (!p_psDBRunQueryF(config->dbh, query, code, warp_id, skycell_id)) {
    16751675        psError(PS_ERR_UNKNOWN, false, "database error");
    16761676        return false;
Note: See TracChangeset for help on using the changeset viewer.