1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

BUG#868908: Crash in check_simple_equality() with semijoin + materialization + prepared statement

- Part2: safety and code cleanup
This commit is contained in:
Sergey Petrunya
2011-12-07 19:21:51 +04:00
parent 8e25dcfcd7
commit a1b4eadf89
5 changed files with 12 additions and 22 deletions

View File

@ -5922,8 +5922,8 @@ bool TABLE_LIST::init_derived(THD *thd, bool init_view)
int TABLE_LIST::fetch_number_of_rows()
{
int error= 0;
if (jtbm_subselect) /* psergey-todo: how did we work before? */
return 0; /*psergey-todo: check if we still need to set it? */
if (jtbm_subselect)
return 0;
if (is_materialized_derived() && !fill_me)
{