IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 28, 2013, 11:29:33 AM (13 years ago)
Author:
bills
Message:

fix a couple of bugs in disttool -startover.
Make selection by dist_group a like comparision

File:
1 edited

Legend:

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

    r35955 r36248  
    677677    PXOPT_COPY_S64(config->args, where, "-stage_id", "stage_id", "==");
    678678    PXOPT_COPY_STR(config->args, where, "-label", "label", "==");
    679     PXOPT_COPY_STR(config->args, where, "-data_group", "data_group", "==");
     679    PXOPT_COPY_STR(config->args, where, "-data_group", "distRun.data_group", "LIKE");
    680680
    681681    // require data_group or dist_id to be supplied
     
    759759
    760760    query = "DELETE FROM distComponent where dist_id = %" PRId64;
    761     char *query2 =  "DELETE from rcDSFileset using distRun, rcDSFileset WHERE distRun.dist_id = rcDSFileset.dist_id AND rcDSFileset.state ='cleaned' AND dist_id = %" PRId64;
     761    char *query2 =  "DELETE from rcDSFileset using distRun, rcDSFileset WHERE distRun.dist_id = rcDSFileset.dist_id AND rcDSFileset.state ='cleaned' AND rcDSFileset.dist_id = %" PRId64;
    762762   
    763763    for (long i=0; i < psArrayLength(output); i++) {
Note: See TracChangeset for help on using the changeset viewer.