IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 10, 2024, 12:37:20 PM (3 years ago)
Author:
eugene
Message:

fix xcskytools mysql code (support for mysql >5.7.5)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/ippTools/share/xcskytool_result.sql

    r42572 r42579  
    44    xcskyRun.workdir,
    55    xcskyRun.label,
    6     xcstackRun.tess_id,
    7     xcstackRun.skycell_id,
     6    MIN(xcstackRun.tess_id) as tess_id, -- we implicitly assume that all xcstackRuns used for a xcskyRun have the same tess_id
     7    MIN(xcstackRun.skycell_id) as skycell_id, -- and skycell_id
    88    count(xcstackRun.filter) AS num_filters,
    9     TRUNCATE(skycell.radeg/15., 4) AS rahours,
    10     skycell.radeg,
    11     skycell.decdeg,
    12     skycell.glong,
    13     skycell.glat
     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
    1414FROM xcskyRun
    1515JOIN xcskyResult USING(xcsky_id)
Note: See TracChangeset for help on using the changeset viewer.