• Sergey Vojtovich's avatar
    MDEV-7792 - SQL Parsing Error - UNION AND ORDER BY WITH JOIN · 0865e3de
    Sergey Vojtovich authored
    ORDER BY against union may confuse name resolution context, causing valid
    SQL statements to fail.
    
    The purpose of context change was presumably intended for the duration of
    gathering field list for ORDER BY. However it isn't actually required (name
    resolution context is never accessed by the latter).
    
    See also alternative solution (in MySQL 5.7): 92145b95.
    0865e3de
parser.result 34.3 KB