diff options
author | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2010-04-05 16:10:26 +0500 |
---|---|---|
committer | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2010-04-05 16:10:26 +0500 |
commit | c1ad5072b842c25732c278f0f7b60bccf8a23a94 (patch) | |
tree | cf30b27aa26a230caf12f099203e0b3baa439a35 /mysql-test/include/have_tis620.inc | |
parent | e2a546aef46834b8250b3129ee87e944b4dd6ccb (diff) | |
download | mariadb-git-c1ad5072b842c25732c278f0f7b60bccf8a23a94.tar.gz |
Bug#52336 Segfault / crash in 5.1 copy_fields (param=0x9872980) at sql_select.cc:15355
The problem is that we can not use make_cond_for_table().
This function relies on used_tables() condition
which is not set properly for subqueries.
As result subquery is not filtered out.
The fix is to use remove_eq_conds() function instead
of make_cond_for_table() func. 'remove_eq_conds()'
algorithm relies on const_item() value and it allows
to handle subqueries in right way.
mysql-test/r/having.result:
test case
mysql-test/t/having.test:
test case
sql/sql_select.cc:
The fix is to use remove_eq_conds() function instead
of make_cond_for_table() function.
Diffstat (limited to 'mysql-test/include/have_tis620.inc')
0 files changed, 0 insertions, 0 deletions