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

    r20813 r21402  
    101101    if (status != 0) {
    102102        // mark the summitExp row as faulted
    103         if (!p_psDBRunQuery(config->dbh, "UPDATE summitExp SET fault = %d WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", WEXITSTATUS(status), filesetid, camera, telescope)) {
     103        if (!p_psDBRunQueryF(config->dbh, "UPDATE summitExp SET fault = %d WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", WEXITSTATUS(status), filesetid, camera, telescope)) {
    104104            psError(PS_ERR_UNKNOWN, false, "database error");
    105105        }
     
    117117        // download an "empty" fileset.
    118118        // mark the summitExp row as faulted
    119         if (!p_psDBRunQuery(config->dbh, "UPDATE summitExp SET fault = %d WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", 250, filesetid, camera, telescope)) {
     119        if (!p_psDBRunQueryF(config->dbh, "UPDATE summitExp SET fault = %d WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", 250, filesetid, camera, telescope)) {
    120120                psError(PS_ERR_UNKNOWN, false, "database error");
    121121        }
     
    145145            " AND camera = '%s'"
    146146            " AND telescope = '%s'";
    147         if (!p_psDBRunQuery(config->dbh, query, imfiles, filesetid, camera, telescope)) {
     147        if (!p_psDBRunQueryF(config->dbh, query, imfiles, filesetid, camera, telescope)) {
    148148            // rollback
    149149            if (!psDBRollback(config->dbh)) {
     
    162162                "   AND camera = '%s'"
    163163                "   AND telescope = '%s'";
    164             if (!p_psDBRunQuery(config->dbh, query, filesetid, camera, telescope)) {
     164            if (!p_psDBRunQueryF(config->dbh, query, filesetid, camera, telescope)) {
    165165                // rollback
    166166                if (!psDBRollback(config->dbh)) {
     
    281281            "   AND telescope = '%s'"
    282282            "   AND imfiles IS NULL";
    283         if (!p_psDBRunQuery(config->dbh, query, filesetid, camera, telescope, filesetid, camera, telescope)) {
     283        if (!p_psDBRunQueryF(config->dbh, query, filesetid, camera, telescope, filesetid, camera, telescope)) {
    284284            // rollback
    285285            if (!psDBRollback(config->dbh)) {
Note: See TracChangeset for help on using the changeset viewer.