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_towarped_labels.sql

    r29888 r43014  
    33        Label.label AS label_label,
    44        IFNULL(Label.priority, 10000) AS priority,
    5         count(warpRun.warp_id)
     5        count(warpRun.warp_id) AS N_warp
    66    FROM warpRun
    77    LEFT JOIN Label ON warpRun.label = Label.label
     
    1111        -- where hook %s
    1212        group by warpRun.label
    13         ORDER BY priority DESC, warp_id
     13        ORDER BY priority DESC, N_warp DESC
     14--      The old query had warp_id below which is nonsensical
     15--      ORDER BY priority DESC, warp_id
Note: See TracChangeset for help on using the changeset viewer.