• gkodinov/kgeorge@macbook.gmz's avatar
    BUG#14019 : group by converts literal string to column name · 11561638
    gkodinov/kgeorge@macbook.gmz authored
       When resolving unqualified name references MySQL was not
       checking what is the item type for the reference. Thus
       e.g a string literal item that has by convention a name
       equal to its string value will also work as a reference to 
       a SELECT list item or a table field.
       Fixed by allowing only Item_ref or Item_field to referenced by
       (unqualified) name.
    11561638
sql_base.cc 86.5 KB