IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10116


Ignore:
Timestamp:
Nov 20, 2006, 2:03:32 PM (19 years ago)
Author:
jhoblitt
Message:

convert all exp_tags to be of type STR

File:
1 edited

Legend:

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

    r10040 r10116  
    395395            // build a query to search by exp_tag
    396396            psMetadata *where = psMetadataAlloc();
    397             if (!psMetadataAddS32(where, PS_LIST_TAIL, "exp_tag", 0, "==", newExp->exp_tag)) {
     397            if (!psMetadataAddStr(where, PS_LIST_TAIL, "exp_tag", 0, "==", newExp->exp_tag)) {
    398398                // rollback
    399399                if (!psDBRollback(config->dbh)) {
     
    688688    }
    689689
    690     psString exp_tag = psDBIntToString(exp->exp_tag);
    691 
    692690    p2PendingExpRow *p2Exp = p2PendingExpRowAlloc(
    693         exp_tag,
     691        exp->exp_tag,
    694692        "my recipe",
    695693        0xff, // XXX calc version number
     
    697695        label
    698696    );
    699 
    700     psFree(exp_tag);
    701697
    702698    return p2Exp;
     
    869865    }
    870866
    871     psString exp_tag =psDBIntToString(exp->exp_tag);
    872 
    873867    rawDetrendExpRow *raw = rawDetrendExpRowAlloc(
    874         exp_tag,
     868        exp->exp_tag,
    875869        exp->camera,
    876870        exp->telescope,
     
    892886        dateobs
    893887    );
    894 
    895     psFree(exp_tag);
    896888
    897889    if (dateobs) {
Note: See TracChangeset for help on using the changeset viewer.