1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

used item method (Bug #3686)

This commit is contained in:
bell@sanja.is.com.ua
2004-05-12 12:27:43 +03:00
parent a00117902f
commit 7defcb4703

View File

@ -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)