IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24664 for trunk/ippTools/share


Ignore:
Timestamp:
Jul 3, 2009, 11:48:59 AM (17 years ago)
Author:
eugene
Message:

fix definebyquery insert sql so it can handle SQL wildcards; add -pretend mode to definebyquery

Location:
trunk/ippTools/share
Files:
3 edited

Legend:

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

    r23688 r24664  
    1212JOIN camRun
    1313    USING(cam_id)
     14JOIN camProcessedExp
     15    USING(cam_id)
    1416JOIN chipRun
    1517    USING(chip_id)
     
    1719    USING(exp_id)
    1820WHERE
    19     warpSkyfile.skycell_id = '%s'
     21    warpSkyfile.skycell_id = '@SKYCELL_ID@'
    2022    AND warpRun.state = 'full'
    21     AND rawExp.filter = '%s'
     23    AND rawExp.filter = '@FILTER@'
    2224    AND warpSkyfile.fault = 0
    2325    AND warpSkyfile.quality = 0
  • trunk/ippTools/share/stacktool_definebyquery_insert_random_part1.sql

    r23688 r24664  
    1919    JOIN camRun
    2020        USING(cam_id)
     21    JOIN camProcessedExp
     22        USING(cam_id)
    2123    JOIN chipRun
    2224        USING(chip_id)
     
    2426        USING(exp_id)
    2527    WHERE
    26         skycell_id = '%s'
     28        skycell_id = '@SKYCELL_ID@'
    2729        AND warpRun.state = 'full'
    28         AND rawExp.filter = '%s' -- the result of the query is grouped by filter and inserted for one at a time
     30        AND rawExp.filter = '@FILTER@' -- the result of the query is grouped by filter and inserted for one at a time
    2931        AND warpSkyfile.fault = 0
    3032        AND warpSkyfile.quality = 0
  • trunk/ippTools/share/stacktool_definebyquery_insert_random_part2.sql

    r19249 r24664  
    55    -- to get a random set of N.
    66    ORDER BY rnd_num
    7     LIMIT %d
     7    LIMIT @RANDOM_LIMIT@
    88) AS randomWarps
Note: See TracChangeset for help on using the changeset viewer.