IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 25, 2009, 1:49:09 PM (17 years ago)
Author:
bills
Message:

changed the columns magicked from TINYINT to BIGINT
store magic_ds_id of the magicDSRun that was used for destreaking

File:
1 edited

Legend:

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

    r24225 r24552  
    4949static bool importrunMode(pxConfig *config);
    5050
    51 static bool setdiffRunState(pxConfig *config, psS64 diff_id, const char *state, bool magicked);
     51static bool setdiffRunState(pxConfig *config, psS64 diff_id, const char *state, psS64 magicked);
    5252static bool diffRunComplete(pxConfig *config);
    5353
     
    512512    PXOPT_LOOKUP_STR(hostname, config->args, "-hostname", false, false);
    513513    PXOPT_LOOKUP_F32(good_frac, config->args, "-good_frac", false, false);
    514     PXOPT_LOOKUP_BOOL(magicked, config->args, "-magicked", false);
     514    PXOPT_LOOKUP_S64(magicked, config->args, "-magicked", false, false);
    515515
    516516    if (!psDBTransaction(config->dbh)) {
     
    739739
    740740
    741 static bool setdiffRunState(pxConfig *config, psS64 diff_id, const char *state, bool magicked)
     741static bool setdiffRunState(pxConfig *config, psS64 diff_id, const char *state, psS64 magicked)
    742742{
    743743    PS_ASSERT_PTR_NON_NULL(state, false);
     
    749749    }
    750750
    751     char *query = "UPDATE diffRun SET state = '%s', magicked = %d WHERE diff_id = %"PRId64;
     751    char *query = "UPDATE diffRun SET state = '%s', magicked = %" PRId64 " WHERE diff_id = %"PRId64;
    752752
    753753    if (!p_psDBRunQueryF(config->dbh, query, state, magicked, diff_id)) {
     
    803803            false,
    804804            false,
    805             false       // magicked
     805            0       // magicked
    806806    );
    807807
     
    11901190                false,                  // bothways
    11911191                true,                   // exposure
    1192                 false       // magicked
     1192                0       // magicked
    11931193        );
    11941194
     
    18051805
    18061806        psS64 diff_id = psMetadataLookupS64(NULL, row, "diff_id");
    1807         bool magicked = psMetadataLookupBool(NULL, row, "magicked");
     1807        psS64 magicked = psMetadataLookupS64(NULL, row, "magicked");
    18081808
    18091809        // set diffRun.state to 'stop'
Note: See TracChangeset for help on using the changeset viewer.