diff options
author | unknown <sanja@montyprogram.com> | 2012-04-19 09:16:30 +0300 |
---|---|---|
committer | unknown <sanja@montyprogram.com> | 2012-04-19 09:16:30 +0300 |
commit | 9997b78ae48a518e65b7c96c947e868419c679ca (patch) | |
tree | 565ba57250224847b3b806391150a48f3a67f654 /sql/table.cc | |
parent | b9bbe4a18ba8569cd1cedd391725e4ee214d9be7 (diff) | |
download | mariadb-git-9997b78ae48a518e65b7c96c947e868419c679ca.tar.gz |
LP BUG#978847 fixed.
Fixed incorrect type casting which made all fields (except very first) changes to materialized table incorrect.
Saved list of view/derived table used items after expanding '*'.
Diffstat (limited to 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/table.cc b/sql/table.cc index 8e420c715d5..ff104103374 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -6088,7 +6088,8 @@ bool TABLE_LIST::change_refs_to_fields() We need to restore the pointers after the execution of the prepared statement. */ - thd->change_item_tree((Item **)&ref->ref, (Item*)materialized_items + idx); + thd->change_item_tree((Item **)&ref->ref, + (Item*)(materialized_items + idx)); } return FALSE; |