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

    r19621 r43014  
    2727        detRun.det_type,
    2828        detRun.workdir,
    29         detProcessedImfile.exp_id,
    30         detProcessedImfile.class_id,
    31         rawImfile.class_id as rawimfile_class_id,
     29        MIN(detProcessedImfile.exp_id) AS exp_id,
     30        -- not actually used and cause aggregation errors
     31        -- detProcessedImfile.class_id,
     32        -- rawImfile.class_id as rawimfile_class_id,
    3233        rawExp.camera,
    3334        rawExp.exp_tag
Note: See TracChangeset for help on using the changeset viewer.