IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18698


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...

Location:
trunk/ippTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/magictool_definebyquery_insert.sql

    r18697 r18698  
    77FROM magicBestDiffs
    88WHERE
    9     exp_id = '%s'
     9    exp_id = @EXP_ED@ -- Update this with the appropriate exp_id
  • 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.