mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-10657: incorrect result returned with binary protocol (prepared statements)
If translation table present when we materialize the derived table then change it to point to the materialized table. Added debug info to see really what happens with what derived.
This commit is contained in:
committed by
Oleksandr Byelkin
parent
924db8b4ed
commit
462808f3b6
@@ -4108,6 +4108,9 @@ bool TABLE_LIST::create_field_translation(THD *thd)
|
||||
Query_arena *arena, backup;
|
||||
bool res= FALSE;
|
||||
DBUG_ENTER("TABLE_LIST::create_field_translation");
|
||||
DBUG_PRINT("enter", ("Alias: '%s' Unit: %p",
|
||||
(alias ? alias : "<NULL>"),
|
||||
get_unit()));
|
||||
|
||||
if (thd->stmt_arena->is_conventional() ||
|
||||
thd->stmt_arena->is_stmt_prepare_or_first_sp_execute())
|
||||
|
Reference in New Issue
Block a user