summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@oracle.com>2011-04-14 16:35:24 +0200
committerTor Didriksen <tor.didriksen@oracle.com>2011-04-14 16:35:24 +0200
commit2af655c2e59e505390e90039d9c47fbc0fdaf493 (patch)
tree577986eed8dd0b3deeb83f2d9b060c446771232e /sql/sql_select.cc
parentc65d5b761059f953a67d1a70ff152a2473c74c4e (diff)
downloadmariadb-git-2af655c2e59e505390e90039d9c47fbc0fdaf493.tar.gz
Bug#11765713 58705: OPTIMIZER LET ENGINE DEPEND ON UNINITIALIZED VALUES CREATED BY OPT_SUM_QU
Valgrind warnings were caused by comparing index values to an un-initialized field.
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r--sql/sql_select.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 84a09fbc7e6..ab287e57aa1 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -961,7 +961,7 @@ JOIN::optimize()
If all items were resolved by opt_sum_query, there is no need to
open any tables.
*/
- if ((res=opt_sum_query(select_lex->leaf_tables, all_fields, conds)))
+ if ((res=opt_sum_query(thd, select_lex->leaf_tables, all_fields, conds)))
{
if (res == HA_ERR_KEY_NOT_FOUND)
{