IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2008, 6:44:48 PM (18 years ago)
Author:
jhoblitt
Message:

add pztool -code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pztool.c

    r16170 r16334  
    344344    PXOPT_LOOKUP_STR(uri, config->args, "-uri", true, false);
    345345
     346    // default values
     347    PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
     348
    346349    // need to know exp_name, camera, telescope, class, class_id (to find the
    347350    // pzPendingImfile entry and the URI for the newImfile entry.
     
    360363            "       pzPendingImfile.*,"
    361364            "       '%s'" // uri of downloaded file
     365            "       '%d'" // fault code
    362366            "   FROM pzPendingImfile"
    363367            "   WHERE"
     
    368372            "       AND pzPendingImfile.class_id = '%s'";
    369373
    370         if (!p_psDBRunQuery(config->dbh, query, uri, exp_name, camera, telescope, class, class_id)) {
     374        if (!p_psDBRunQuery(config->dbh, query, uri, exp_name, camera, telescope, class, class_id, code)) {
    371375            // rollback
    372376            if (!psDBRollback(config->dbh)) {
Note: See TracChangeset for help on using the changeset viewer.