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

Fixed LP bug #825035.

The value of maybe_null flag should be saved for the second execution
of a prepared statement from SELECT that uses an outer join.
This commit is contained in:
Igor Babaev
2011-08-16 22:48:35 -07:00
parent 923dc9ea76
commit 249a10c7dd
8 changed files with 73 additions and 0 deletions

View File

@ -3588,6 +3588,10 @@ bool st_select_lex::save_leaf_tables(THD *thd)
return 1;
table->tablenr_exec= table->table->tablenr;
table->map_exec= table->table->map;
if (join && (join->select_options & SELECT_DESCRIBE))
table->maybe_null_exec= 0;
else
table->maybe_null_exec= table->table->maybe_null;
}
if (arena)
thd->restore_active_arena(arena, &backup);