summaryrefslogtreecommitdiff
path: root/sql/item_subselect.h
diff options
context:
space:
mode:
authorgkodinov/kgeorge@macbook.gmz <>2006-11-03 18:48:16 +0200
committergkodinov/kgeorge@macbook.gmz <>2006-11-03 18:48:16 +0200
commit77acba320d5d95bea1956e232d36cb438496a346 (patch)
tree4614f1b556b2ec706434fe02a59bb11d736c99f3 /sql/item_subselect.h
parente1a7fb7b2cfa52b00fe26f5dc2d93227d268a560 (diff)
downloadmariadb-git-77acba320d5d95bea1956e232d36cb438496a346.tar.gz
Bug #22457: Column alias in ORDER BY works, but not if in an expression
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.
Diffstat (limited to 'sql/item_subselect.h')
0 files changed, 0 insertions, 0 deletions