Commit 7defcb47 authored by bell@sanja.is.com.ua's avatar bell@sanja.is.com.ua

used item method (Bug #3686)

parent a0011790
......@@ -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