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/staticskytool_todo.sql

    r38296 r43014  
    55    staticskyRun.label,
    66    staticskyRun.state,
    7     stackRun.tess_id,
    8     stackRun.skycell_id,
    9     TRUNCATE(skycell.radeg/15., 4) as rahours,
    10     skycell.radeg,
    11     skycell.decdeg,
    12     skycell.glong,
    13     skycell.glat,
     7    MIN(stackRun.tess_id) as tess_id,
     8    MIN(stackRun.skycell_id) as skycell_id,
     9    TRUNCATE(MIN(skycell.radeg)/15., 4) as rahours,
     10    MIN(skycell.radeg) AS radeg,
     11    MIN(skycell.decdeg) AS decdeg,
     12    MIN(skycell.glong) AS glong,
     13    MIN(skycell.glat) AS glat, 
    1414    staticskyResult.path_base,
    1515    IFNULL(Label.priority, 10000) AS priority
Note: See TracChangeset for help on using the changeset viewer.