IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27678


Ignore:
Timestamp:
Apr 14, 2010, 11:46:47 AM (16 years ago)
Author:
Paul Price
Message:

Simplifying stacktool_inputskyfile.sql

Location:
trunk/ippTools
Files:
2 edited

Legend:

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

    r19260 r27678  
    1 SELECT DISTINCT
     1SELECT
    22    warpSkyfile.*,
    33    rawExp.camera
    44FROM stackRun
    5 JOIN stackInputSkyfile
    6     USING(stack_id)
    7 JOIN warpSkyfile
    8     ON  stackInputSkyfile.warp_id = warpSkyfile.warp_id
    9     AND stackRun.skycell_id       = warpSkyfile.skycell_id
    10     AND stackRun.tess_id          = warpSkyfile.tess_id
    11 JOIN warpRun
    12     ON stackInputSkyfile.warp_id = warpRun.warp_id
    13 JOIN fakeRun
    14     USING(fake_id)
    15 JOIN camRun
    16     USING(cam_id)
    17 JOIN chipRun
    18     USING(chip_id)
    19 JOIN chipProcessedImfile
    20     USING(chip_id)
    21 JOIN rawExp
    22     ON chipProcessedImfile.exp_id = rawExp.exp_id
     5JOIN stackInputSkyfile USING(stack_id)
     6JOIN warpRun USING(warp_id)
     7JOIN warpSkyfile USING(warp_id, tess_id, skycell_id)
     8JOIN fakeRun USING(fake_id)
     9JOIN camRun USING(cam_id)
     10JOIN chipRun USING(chip_id)
     11JOIN rawExp USING(exp_id)
  • trunk/ippTools/src/stacktool.c

    r27391 r27678  
    681681    if (psListLength(where->list)) {
    682682        psString whereClause = psDBGenerateWhereConditionSQL(where, "stackInputSkyfile");
    683         psStringAppend(&query, " AND %s", whereClause);
     683        psStringAppend(&query, " WHERE %s", whereClause);
    684684        psFree(whereClause);
    685685    }
Note: See TracChangeset for help on using the changeset viewer.