IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10040


Ignore:
Timestamp:
Nov 16, 2006, 6:31:19 PM (20 years ago)
Author:
jhoblitt
Message:

change newExp.exp_tag to be psU64

File:
1 edited

Legend:

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

    r9764 r10040  
    395395            // build a query to search by exp_tag
    396396            psMetadata *where = psMetadataAlloc();
    397             if (!psMetadataAddStr(where, PS_LIST_TAIL, "exp_tag", 0, "==", newExp->exp_tag)) {
     397            if (!psMetadataAddS32(where, PS_LIST_TAIL, "exp_tag", 0, "==", newExp->exp_tag)) {
    398398                // rollback
    399399                if (!psDBRollback(config->dbh)) {
     
    688688    }
    689689
    690     return p2PendingExpRowAlloc(
    691         exp->exp_tag,
     690    psString exp_tag = psDBIntToString(exp->exp_tag);
     691
     692    p2PendingExpRow *p2Exp = p2PendingExpRowAlloc(
     693        exp_tag,
    692694        "my recipe",
    693695        0xff, // XXX calc version number
     
    695697        label
    696698    );
     699
     700    psFree(exp_tag);
     701
     702    return p2Exp;
    697703}
    698704
     
    863869    }
    864870
     871    psString exp_tag =psDBIntToString(exp->exp_tag);
     872
    865873    rawDetrendExpRow *raw = rawDetrendExpRowAlloc(
    866         exp->exp_tag,
     874        exp_tag,
    867875        exp->camera,
    868876        exp->telescope,
     
    884892        dateobs
    885893    );
     894
     895    psFree(exp_tag);
    886896
    887897    if (dateobs) {
Note: See TracChangeset for help on using the changeset viewer.