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:
@ -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);
|
||||
|
Reference in New Issue
Block a user