1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +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) if (item->with_sum_func)
flag|=1; flag|=1;
else if (!(flag & 2) && else if (!(flag & 2) && !item->const_during_execution())
test(item->used_tables() & ~PARAM_TABLE_BIT))
flag|=2; flag|=2;
} }
if (flag == 3) if (flag == 3)