diff options
| author | Jan Wedvik <jan.wedvik@sun.com> | 2011-01-11 12:09:54 +0100 |
|---|---|---|
| committer | Jan Wedvik <jan.wedvik@sun.com> | 2011-01-11 12:09:54 +0100 |
| commit | f4adb7c6e4cd855499d92c9352dd4d75aab5e1b0 (patch) | |
| tree | 33efe1cbbdfd4e1197cf92445003f6cdfd580e51 /sql/sql_select.cc | |
| parent | 99e95e8dabdaf5cb87529209b0602a76db9c8324 (diff) | |
| download | mariadb-git-f4adb7c6e4cd855499d92c9352dd4d75aab5e1b0.tar.gz | |
Fix for bug#58553, "Queries with pushed conditions causes 'explain extended'
to crash mysqld".
handler::pushed_cond was not always properly reset when table objects where
recycled via the table cache.
handler::pushed_cond is now set to NULL in handler::ha_reset(). This should
prevent pushed conditions from (incorrectly) re-apperaring in later queries.
Diffstat (limited to 'sql/sql_select.cc')
| -rw-r--r-- | sql/sql_select.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 9e0a82aa342..067f3cfc95d 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -6380,7 +6380,6 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond) tab->select_cond=sel->cond=tmp; /* Push condition to storage engine if this is enabled and the condition is not guarded */ - tab->table->file->pushed_cond= NULL; if (thd->variables.engine_condition_pushdown) { COND *push_cond= |
