mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
treat parameter as constant in ORDER BY check of fields in SELECT list(Bug #3686)
This commit is contained in:
@ -367,7 +367,8 @@ JOIN::prepare(Item ***rref_pointer_array,
|
||||
{
|
||||
if (item->with_sum_func)
|
||||
flag|=1;
|
||||
else if (!(flag & 2) && !item->const_item())
|
||||
else if (!(flag & 2) &&
|
||||
test(item->used_tables() & ~PARAM_TABLE_BIT))
|
||||
flag|=2;
|
||||
}
|
||||
if (flag == 3)
|
||||
|
Reference in New Issue
Block a user