IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 5, 2007, 5:41:11 PM (19 years ago)
Author:
jhoblitt
Message:

split detselect SQL out into their own files
add rawExp.filelevel field

File:
1 edited

Legend:

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

    r11856 r12259  
    168168    }
    169169
    170     psString query = psStringCopy(
    171         "SELECT DISTINCT"
    172         "   detRunSummary.det_id,"
    173         "   detRunSummary.iteration"
    174         " FROM detRun"
    175         " JOIN detRunSummary"
    176         "   USING(det_id)"
    177         " WHERE"
    178         "   detRun.state = 'stop'"
    179         "   AND detRun.mode  = 'master'"
    180         "   AND detRunSummary.accept = 1"
    181     );
     170    psString query = pxDataGet("detselect_search.sql");
     171    if (!query) {
     172        psError(PXTOOLS_ERR_DATA, false, "failed to retreive SQL statement");
     173        return false;
     174    }
    182175
    183176    if (config->where) {
     
    246239    PS_ASSERT_PTR_NON_NULL(config, false);
    247240
    248     psString query = psStringCopy(
    249         "SELECT DISTINCT"
    250         "   detNormalizedImfile.*"
    251         " FROM detNormalizedImfile"
    252         " JOIN detRun"
    253         "   USING(det_id)"
    254         " JOIN detRunSummary"
    255         "   ON detNormalizedImfile.det_id = detRunSummary.det_id"
    256         "   AND detNormalizedImfile.iteration = detRunSummary.iteration"
    257         " WHERE"
    258         "   detRun.state = 'stop'"
    259         "   AND detRun.mode  = 'master'"
    260         "   AND detRunSummary.accept = 1"
    261     );
     241    psString query = pxDataGet("detselect_select.sql");
     242    if (!query) {
     243        psError(PXTOOLS_ERR_DATA, false, "failed to retreive SQL statement");
     244        return false;
     245    }
     246
    262247
    263248    if (config->where) {
Note: See TracChangeset for help on using the changeset viewer.