IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 3, 2010, 7:11:23 PM (16 years ago)
Author:
heather
Message:

minidvodb tested. trying itout on MD05, 04 and 07 now.

File:
1 edited

Legend:

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

    r28193 r28211  
    136136    PXOPT_LOOKUP_STR(reduction,   config->args, "-set_reduction", false, false);
    137137    PXOPT_LOOKUP_STR(note,        config->args, "-set_note", false, false);
    138     PXOPT_LOOKUP_STR(minidvodb_name,        config->args, "-set_minidvodb_name", false, false);
    139     PXOPT_LOOKUP_STR(minidvodb_group,        config->args, "-set_minidvodb_group", false, false);
     138    PXOPT_LOOKUP_STR(minidvodb_name,  config->args, "-set_minidvodb_name", false, false);
     139    PXOPT_LOOKUP_STR(minidvodb_group, config->args, "-set_minidvodb_group", false, false);
    140140    PXOPT_LOOKUP_BOOL(image_only, config->args, "-image_only", false);
    141141    PXOPT_LOOKUP_BOOL(minidvodb,  config->args, "-set_minidvodb", false);
     
    405405    PXOPT_LOOKUP_F32(dtime_addstar, config->args, "-dtime_addstar", false, false);
    406406    PXOPT_LOOKUP_STR(dvodb_path, config->args, "-dvodb_path", false, false);
     407    PXOPT_LOOKUP_STR(minidvodb_name, config->args, "-minidvodb_name", false, false);
    407408    PXOPT_LOOKUP_S16(fault,         config->args, "-fault", false, false);
    408409
     
    470471        return false;
    471472    }
     473
     474    //if there is a minidvodb_name, set it in addRun (it's not known until it is processed)
     475    if (minidvodb_name) {
     476      psString setName = NULL;
     477      psStringAppend (&setName, "UPDATE addRun set minidvodb_name = '%s' where add_id = %" PRId64, minidvodb_name, row->add_id);
     478      if (!p_psDBRunQuery(config->dbh, setName)) {
     479        if (!psDBRollback(config->dbh)) {
     480          psError(PS_ERR_UNKNOWN, false, "database error");
     481        }
     482        psError(PS_ERR_UNKNOWN, false, "database error");
     483       
     484        return false;
     485      }
     486    }
     487
     488
     489
     490
    472491
    473492    // since there is only one exp per 'new' set addRun.state = 'full'
Note: See TracChangeset for help on using the changeset viewer.