IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17872 for trunk/ippTools/src


Ignore:
Timestamp:
May 30, 2008, 4:19:52 PM (18 years ago)
Author:
jhoblitt
Message:

add epoch fields to pz*, new*, & raw* tables

Location:
trunk/ippTools/src
Files:
3 edited

Legend:

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

    r17611 r17872  
    9191
    9292    if (!newExpInsert(config->dbh,
    93                 0x0, // exp_id
     93                0x0,    // exp_id
    9494                tmp_exp_name,
    9595                tmp_camera,
    9696                tmp_telescope,
    97                 "reg", // state
     97                "reg",  // state
    9898                workdir,
    9999                "dirty",
     
    101101                dvodb,
    102102                tess_id,
    103             end_stage,
    104               label
     103                end_stage,
     104                label,
     105                NULL    // epoch
    105106            )
    106107        ) {
     
    141142
    142143    // insert with error flag state set to 0 (no errors)
    143     if (!newImfileInsert(config->dbh, (psS64)atoll(exp_id), tmp_class_id, uri)) {
     144    if (!newImfileInsert(config->dbh, (psS64)atoll(exp_id), tmp_class_id, uri, NULL)) {
    144145        psError(PS_ERR_UNKNOWN, false, "database error");
    145146        return false;
  • trunk/ippTools/src/pztool.c

    r17700 r17872  
    111111            camera,
    112112            telescope,
    113             uri
     113            uri,
     114            NULL  // epoch
    114115        )) {
    115116        psError(PS_ERR_UNKNOWN, false, "database error");
     
    370371            class_id,
    371372            uri,
    372             code
     373            code,
     374            NULL    // epoch
    373375    )) {
    374376        psError(PS_ERR_UNKNOWN, false, "database error");
     
    497499                    tess_id,            // tess_id
    498500                    end_stage,          // end_stage
    499                    label
     501                    label,
     502                    NULL                // epoch
    500503                )
    501504        ) {
  • trunk/ippTools/src/regtool.c

    r17802 r17872  
    280280        object,
    281281        hostname,
    282         code
     282        code,
     283        NULL
    283284    )) {
    284285        psError(PS_ERR_UNKNOWN, false, "database error");
     
    630631    psMetadata *row = output->data[0];
    631632    // convert metadata into a newExp object
     633    psMetadataConfigPrint(stdout, row);
    632634    newExpRow *newExp = newExpObjectFromMetadata(row);
    633635    psFree(output);
     636    if (!newExp) {
     637        psError(PS_ERR_UNKNOWN, false, "this should not happen");
     638        return false;
     639    }
    634640
    635641    // carry through these values
     
    700706        0.0,
    701707        hostname,
    702         code
     708        code,
     709        NULL
    703710    )) {
    704711        // rollback
Note: See TracChangeset for help on using the changeset viewer.