Commit 01925fa5 authored by unknown's avatar unknown

used item method (Bug #3686)

parent f71f5973
......@@ -367,8 +367,7 @@ JOIN::prepare(Item ***rref_pointer_array,
{
if (item->with_sum_func)
flag|=1;
else if (!(flag & 2) &&
test(item->used_tables() & ~PARAM_TABLE_BIT))
else if (!(flag & 2) && !item->const_during_execution())
flag|=2;
}
if (flag == 3)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment