summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@sanjaLaptopT>2017-12-20 13:52:27 +0100
committerOleksandr Byelkin <sanja@sanjaLaptopT>2017-12-20 13:52:27 +0100
commit24b4585ad0648f21519f47a04762e1b208918749 (patch)
tree00594ae17668aa56bf99a6aa19fe8048831bb908 /sql/table.cc
parent924db8b4ed3f268cbe91a1734611f4dc2311c7be (diff)
downloadmariadb-git-bb-5.5-MDEV-10657.tar.gz
MDEV-10657: incorrect result returned with binary protocol (prepared statements)bb-5.5-MDEV-10657
If translation table present when we materialize the derived table then change it to point on the materialized table. Added debug info to see really what happens with what derived.
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/table.cc b/sql/table.cc
index fbcd91f5326..9cade76cb78 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -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())