IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 14, 2008, 3:28:57 PM (18 years ago)
Author:
eugene
Message:

various fixes to the get command-line options for cleanup stages correct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080719/ippTools/src/dettool.c

    r18991 r19078  
    911911    psFree(time_filter);
    912912
    913     if (!p_psDBRunQuery(config->dbh, query, (psS64)newDet_id, det_id)) {
     913    if (!p_psDBRunQuery(config->dbh, query, (long long) newDet_id, (long long) det_id)) {
    914914        psError(PS_ERR_UNKNOWN, false, "database error");
    915915        psFree(query);
     
    18071807
    18081808
    1809 bool setStackedImfileDataState(pxConfig *config, psS64 det_id, psS32 iteration, const char *data_state)
    1810 {
    1811     PS_ASSERT_PTR_NON_NULL(config, false);
     1809bool setStackedImfileDataState(pxConfig *config, psS64 det_id, psS32 iteration, const char *class_id, const char *data_state)
     1810{
     1811    PS_ASSERT_PTR_NON_NULL(config, false);
     1812    PS_ASSERT_PTR_NON_NULL(class_id, false);
    18121813    PS_ASSERT_PTR_NON_NULL(data_state, false);
    18131814
     
    18161817    char *query = "UPDATE detStackedImfile SET data_state = '%s'"
    18171818        " WHERE det_id = %" PRId64
    1818         " AND iteration = %" PRId32;
    1819     if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, iteration)) {
     1819        " AND iteration = %" PRId32
     1820        " AND class_id = %s";
     1821    if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, iteration, class_id)) {
    18201822        psError(PS_ERR_UNKNOWN, false,
    1821                 "failed to change state for det_id %" PRId64 ", iteration %" PRId32,
    1822                 det_id, iteration);
     1823                "failed to change state for det_id %" PRId64 ", iteration %" PRId32 "class_id %s",
     1824                det_id, iteration, class_id);
    18231825        return false;
    18241826    }
Note: See TracChangeset for help on using the changeset viewer.