1. 09 Nov, 2006 1 commit
    • gkodinov/kgeorge@macbook.gmz's avatar
      Bug #20191: getTableName gives wrong or inconsistent result when using VIEWs · e7ff881c
      gkodinov/kgeorge@macbook.gmz authored
      When compiling GROUP BY Item_ref instances are dereferenced in 
      setup_copy_fields(), i.e. replaced with the corresponding Item_field 
      (if they point to one) or Item_copy_string for the other cases.
      Since the Item_ref (in the Item_field case) is no longer used the information
      about the aliases stored in it is lost.   
      Fixed by preserving the column, table and DB alias on dereferencing Item_ref
      e7ff881c
  2. 07 Nov, 2006 7 commits
  3. 06 Nov, 2006 3 commits
  4. 03 Nov, 2006 1 commit
    • gkodinov/kgeorge@macbook.gmz's avatar
      Bug #22457: Column alias in ORDER BY works, but not if in an expression · 77acba32
      gkodinov/kgeorge@macbook.gmz authored
       The parser is allocating Item_field for references by name in ORDER BY
       expressions. Such expressions however may point not only to Item_field 
       in the select list (or to a table column) but also to an arbitrary Item. 
       This causes Item_field::fix_fields to throw an error about missing 
       column.
       The fix substitutes Item_field for the reference with an Item_ref when 
       not pointing to Item_field.
      77acba32
  5. 01 Nov, 2006 4 commits
  6. 31 Oct, 2006 8 commits
  7. 25 Oct, 2006 1 commit
  8. 24 Oct, 2006 12 commits
  9. 23 Oct, 2006 2 commits
  10. 20 Oct, 2006 1 commit