IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19276


Ignore:
Timestamp:
Aug 28, 2008, 4:24:03 PM (18 years ago)
Author:
bills
Message:

fix incorrect sql for stackSumSkyfile lookup

Location:
trunk/ippTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/stacktool_sumskyfile.sql

    r19092 r19276  
    66JOIN stackSumSkyfile
    77    USING(stack_id)
     8JOIN stackInputSkyfile
     9    USING(stack_id)
    810JOIN warpRun
    9     -- just need 1 warp to find the camera
    10     ON warpRun.warp_id = (SELECT warp_id FROM stackInputSkyfile
    11                             WHERE stackInputSkyfile.stack_id = stackRun.stack_id limit 1)
     11    USING(warp_id)
    1212JOIN fakeRun
    1313    ON warpRun.fake_id = fakeRun.fake_id
     
    1818JOIN rawExp
    1919    ON chipRun.exp_id  = rawExp.exp_id
    20 WHERE
    21 -- bogus test; just here so there there is a 'WHERE' stmt to append conditionals too
    22 -- XXX EAM : this is not needed : fix the stacktool code.
    23     stackRun.stack_id is NOT NULL
  • trunk/ippTools/src/stacktool.c

    r19260 r19276  
    749749    if (psListLength(where->list)) {
    750750        psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
    751         psStringAppend(&query, " AND %s", whereClause);
     751        psStringAppend(&query, " WHERE %s", whereClause);
    752752        psFree(whereClause);
    753753    }
Note: See TracChangeset for help on using the changeset viewer.