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

5.1-bugteam->trunk-merge merge

This commit is contained in:
Sergey Glukhov
2010-07-09 14:46:46 +04:00
3 changed files with 38 additions and 1 deletions

View File

@ -1154,7 +1154,7 @@ JOIN::optimize()
elements may be lost during further having
condition transformation in JOIN::exec.
*/
if (having && const_table_map)
if (having && const_table_map && !having->with_sum_func)
{
having->update_used_tables();
having= remove_eq_conds(thd, having, &having_value);