IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29831


Ignore:
Timestamp:
Nov 24, 2010, 3:42:26 PM (15 years ago)
Author:
bills
Message:

Fix ticket #1439. The trick to match the inverse bit with the maximum diff_id needed to order by
diff_id DESC not ascending

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/magictool_definebyquery_select.sql

    r29363 r29831  
    44    MAX(diffWarps.diff_id) AS diff_id,
    55    -- The following trick pulls out the 'inverse' value for the maximum diff_id
    6     CONVERT(SUBSTRING_INDEX(GROUP_CONCAT(diffWarps.inverse ORDER BY diffWarps.diff_id), ',', 1), UNSIGNED) AS inverse,
     6    CONVERT(SUBSTRING_INDEX(GROUP_CONCAT(diffWarps.inverse ORDER BY diffWarps.diff_id DESC), ',', 1), UNSIGNED) AS inverse,
    77    diff_data_group
    88FROM (
Note: See TracChangeset for help on using the changeset viewer.