IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 28, 2007, 6:44:37 PM (19 years ago)
Author:
jhoblitt
Message:

rename all *_version fields to be *_id
change chip* tables to use a chip_id
change cam* tables to use a cam_id
change all *_id fields to be S64

File:
1 edited

Legend:

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

    r12112 r12131  
    281281    // constrants
    282282    if (!diffInputSkyfileInsert(config->dbh,
    283             (psS32)atoi(diff_id),
    284             (psS32)atoi(warp_id),
     283            (psS64)atoll(diff_id),
     284            (psS64)atoll(warp_id),
    285285            skycell_id,
    286286            tess_id,
     
    322322        " JOIN warpInputExp\n"
    323323        "   ON diffInputSkyfile.warp_id    = warpInputExp.warp_id\n"
     324        " JOIN camProcessedExp\n"
     325        "   ON warpInputExp.cam_id = camProcessedExp.cam_id\n"
     326        " JOIN chipProcessedExp\n"
     327        "   ON camProcessedExp.chip_id = chipProcessedExp.chip_id\n"
    324328        " JOIN rawExp\n"
    325         "   ON warpInputExp.exp_tag        = rawExp.exp_tag\n"
     329        "   ON chipProcessedExp.exp_tag = rawExp.exp_tag\n"
    326330        " WHERE\n"
    327331        "   diffRun.state = 'run'\n"
     
    379383
    380384    if (psArrayLength(output)) {
     385        if (!convertIdToStr(output)) {
     386            psError(PS_ERR_UNKNOWN, false, "failed to convert id fields into a strings");
     387            psFree(output);
     388            return false;
     389        }
     390
    381391        // negative simple so the default is true
    382392        if (!ippdbPrintMetadatas(stdout, output, "diffInputSkyfile", !simple)) {
     
    474484
    475485    if (psArrayLength(output)) {
     486        if (!convertIdToStr(output)) {
     487            psError(PS_ERR_UNKNOWN, false, "failed to convert id fields into a strings");
     488            psFree(output);
     489            return false;
     490        }
     491
    476492        // negative simple so the default is true
    477493        if (!ippdbPrintMetadatas(stdout, output, "diffSkyfile", !simple)) {
     
    532548
    533549    if (!diffSkyfileInsert(config->dbh,
    534             (psS32)atoi(diff_id),
     550            (psS64)atoll(diff_id),
    535551            uri,
    536552            bg,
     
    637653
    638654    if (psArrayLength(output)) {
     655        if (!convertIdToStr(output)) {
     656            psError(PS_ERR_UNKNOWN, false, "failed to convert id fields into a strings");
     657            psFree(output);
     658            return false;
     659        }
     660
    639661        // negative simple so the default is true
    640662        if (!ippdbPrintMetadatas(stdout, output, "diffSkyfile", !simple)) {
Note: See TracChangeset for help on using the changeset viewer.