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

    r42837 r43014  
    11SELECT
    2     xcskyResult.*,
    3     xcskyRun.state,
    4     xcskyRun.workdir,
    5     xcskyRun.label,
     2    -- EAM only return values needed by supporting code
     3    -- this query is used in dist_advancerun.pl & permcheck.pl
     4    -- needed fields: workdir, skycell_id, path_base
     5    MIN(xcskyResult.path_base) AS path_base,
     6    MIN(xcskyRun.state) AS state,
     7    MIN(xcskyRun.workdir) as workdir,
     8    MIN(xcskyRun.label) as label,
    69    MIN(xcstackRun.tess_id) as tess_id, -- we implicitly assume that all xcstackRuns used for a xcskyRun have the same tess_id
    710    MIN(xcstackRun.skycell_id) as skycell_id, -- and skycell_id
Note: See TracChangeset for help on using the changeset viewer.