IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 11, 2026, 3:09:36 PM (2 months ago)
Author:
eugene
Message:

fix various SQL errors caught by more strict mysql versions, especially: force SQL to select a specific entry from non-aggregated fields when other fields are aggregated using e.g., GROUP BY

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/ippTools/share/warptool_finished_run_select.sql

    r26567 r43014  
    66       warpRun.warp_id,
    77       warpRun.label as label,
    8        warpSkyCellMap.warp_id as foo,
    9        warpSkyfile.warp_id as bar,
    10        warpSkyfile.magicked as magicked
     8--     these two fields are not used so we should not select for them
     9--     warpSkyCellMap.warp_id as foo,
     10--     warpSkyfile.warp_id as bar,
     11--     this field is not guaranteed to be unique in the set for a single warp_id
     12--     but the previous query version selected an arbitrary entry.  select
     13--     the MIN to avoid trouble with the GROUP BY
     14       MIN(warpSkyfile.magicked) as magicked
    1115   FROM warpRun
    1216   JOIN warpSkyCellMap
Note: See TracChangeset for help on using the changeset viewer.