IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 23, 2008, 4:33:23 PM (18 years ago)
Author:
Paul Price
Message:

Whoops --- exp_id isn't a string, but a S64, so I have to play games with it...

File:
1 edited

Legend:

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

    r18697 r18698  
    266266        // Create a suitable insertion query for this run
    267267        psString thisInsert = psStringCopy(insert);
    268         psString idString = NULL;
    269         psStringAppend(&idString, "%" PRId64, magic_id);
    270         psStringSubstitute(&thisInsert, idString, "@MAGIC_ID@");
    271         psFree(idString);
     268        {
     269            psString idString = NULL;
     270            psStringAppend(&idString, "%" PRId64, magic_id);
     271            psStringSubstitute(&thisInsert, idString, "@MAGIC_ID@");
     272            psFree(idString);
     273        }
     274        {
     275            psString idString = NULL;
     276            psStringAppend(&idString, "%" PRId64, exp_id);
     277            psStringSubstitute(&thisInsert, idString, "@EXP_ID@");
     278            psFree(idString);
     279        }
    272280
    273281        if (!p_psDBRunQuery(config->dbh, thisInsert, magic_id, exp_id)) {
Note: See TracChangeset for help on using the changeset viewer.