IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 8, 2008, 11:29:03 AM (18 years ago)
Author:
eugene
Message:

fixed a bug in the argument order for db update call

File:
1 edited

Legend:

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

    r16364 r16380  
    367367        char *query =
    368368            "INSERT INTO pzDoneImfile"
    369             "   SElECT"
     369            "   SELECT"
    370370            "       pzPendingImfile.*,"
    371             "       '%s'" // uri of downloaded file
     371            "       '%s'," // uri of downloaded file
    372372            "       '%d'" // fault code
    373373            "   FROM pzPendingImfile"
     
    379379            "       AND pzPendingImfile.class_id = '%s'";
    380380
    381         if (!p_psDBRunQuery(config->dbh, query, uri, exp_name, camera, telescope, class, class_id, code)) {
     381        if (!p_psDBRunQuery(config->dbh, query, uri, code, exp_name, camera, telescope, class, class_id)) {
    382382            // rollback
    383383            if (!psDBRollback(config->dbh)) {
Note: See TracChangeset for help on using the changeset viewer.