IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 5, 2007, 4:46:53 PM (19 years ago)
Author:
jhoblitt
Message:

fix dettool -raw SQL

File:
1 edited

Legend:

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

    r14023 r14033  
    20502050    PS_ASSERT_PTR_NON_NULL(config, false);
    20512051
    2052     psString query = psStringCopy(
    2053             "SELECT"
    2054             "   detInputExp.det_id,"
    2055             "   detRun.det_type,"
    2056             "   rawImfile.*,"
    2057             "   rawExp.camera"
    2058             " FROM rawImfile"
    2059             " JOIN detInputExp"
    2060             "   USING(exp_id) "
    2061             " JOIN rawExp"
    2062             "   USING(exp_id) "
    2063             " JOIN detRun"
    2064             "   ON detInputExp.det_id = detRun.det_id"
    2065             " WHERE"
    2066             "   detRun.state = 'run'"
    2067             "   AND detRun.mode = 'master'"
    2068         );
     2052    psString query = pxDataGet("dettool_raw.sql");
     2053    if (!query) {
     2054        psError(PXTOOLS_ERR_DATA, false, "failed to retreive SQL statement");
     2055        return false;
     2056    }
    20692057
    20702058    if (config->where) {
Note: See TracChangeset for help on using the changeset viewer.