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/stacktool.c

    r12114 r12131  
    192192            return false;
    193193        }
    194         if (!stackInputSkyfileInsert(config->dbh, run->stack_id, atoi((char *)item->data.V))) {
     194        if (!stackInputSkyfileInsert(config->dbh, run->stack_id, (psS64)atoll((char *)item->data.V))) {
    195195            if (!psDBRollback(config->dbh)) {
    196196                psError(PS_ERR_UNKNOWN, false, "database error");
     
    296296    // constrants
    297297    if (!stackInputSkyfileInsert(config->dbh,
    298             (psS32)atoi(stack_id),
    299             (psS32)atoi(warp_id)
     298            (psS64)atoll(stack_id),
     299            (psS64)atoll(warp_id)
    300300        )) {
    301301        psError(PS_ERR_UNKNOWN, false, "database error");
     
    388388
    389389    if (psArrayLength(output)) {
     390        if (!convertIdToStr(output)) {
     391            psError(PS_ERR_UNKNOWN, false, "failed to convert id fields into a strings");
     392            psFree(output);
     393            return false;
     394        }
     395
    390396        // negative simple so the default is true
    391397        if (!ippdbPrintMetadatas(stdout, output, "stackInputSkyfile", !simple)) {
     
    477483
    478484    if (psArrayLength(output)) {
     485        if (!convertIdToStr(output)) {
     486            psError(PS_ERR_UNKNOWN, false, "failed to convert id fields into a strings");
     487            psFree(output);
     488            return false;
     489        }
     490
    479491        // negative simple so the default is true
    480492        if (!ippdbPrintMetadatas(stdout, output, "stackSumSkyfile", !simple)) {
     
    539551    // constrants
    540552    if (!stackSumSkyfileInsert(config->dbh,
    541             (psS32)atoi(stack_id),
     553            (psS64)atoll(stack_id),
    542554            uri,
    543555            bg,
     
    642654
    643655    if (psArrayLength(output)) {
     656        if (!convertIdToStr(output)) {
     657            psError(PS_ERR_UNKNOWN, false, "failed to convert id fields into a strings");
     658            psFree(output);
     659            return false;
     660        }
     661
    644662        if (!ippdbPrintMetadatas(stdout, output, "stackSumSkyfile", !simple)) {
    645663            psError(PS_ERR_UNKNOWN, false, "failed to print array");
Note: See TracChangeset for help on using the changeset viewer.