IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 18, 2010, 5:44:54 PM (16 years ago)
Author:
watersc1
Message:

Changes to implement distribution of stack-stack diffs.

File:
1 edited

Legend:

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

    r26984 r26997  
    277277        // stack stage doesn't require magic
    278278        no_magic = true;
     279    } else if (!strcmp(stage, "SSdiff")) {
     280      magicRunType = "diffRun";
     281      runJoinStr = "diffRun.diff_id";
     282      query = pxDataGet("disttool_definebyquery_SSdiff.sql");
     283      if (!query) {
     284        psError(PXTOOLS_ERR_SYS, false, "failed to retrieve SQL statement");
     285        psFree(where);
     286        return(false);
     287      }
     288
     289      if (label) {
     290        psStringAppend(&query, " AND (diffRun.label = '%s') ", label);
     291      }
     292      if (dist_group) {
     293        psStringAppend(&query, " AND (diffRun.dist_group = '%s') ", dist_group);
     294      }
     295
     296      no_magic = true;   
    279297    } else {
    280298        psError(PS_ERR_UNKNOWN, true, "unknown value for stage: %s", stage);
     
    313331        psFree(limitString);
    314332    }
    315 
     333    psTrace("disttool",2,query,joinHook ? joinHook : "");
    316334    if (!p_psDBRunQueryF(config->dbh, query, joinHook ? joinHook : "")) {
    317         psError(PS_ERR_UNKNOWN, false, "database error");
    318         psFree(query);
    319         return false;
     335      psError(PS_ERR_UNKNOWN, false, "database error");
     336      psFree(query);
     337      return false;
    320338    }
    321339    psFree(query);
Note: See TracChangeset for help on using the changeset viewer.