summaryrefslogtreecommitdiff
path: root/sql/sql_trigger.cc
diff options
context:
space:
mode:
authorChaithra Gopalareddy <chaithra.gopalareddy@oracle.com>2015-02-26 09:59:00 +0530
committerChaithra Gopalareddy <chaithra.gopalareddy@oracle.com>2015-02-26 09:59:00 +0530
commit08763096cb8e8b1497d33a0bf29babfa67f6817a (patch)
tree829c0ddcb6d646f0d530e4c81e0972485a1f867f /sql/sql_trigger.cc
parent2e3c2cd3625598d6de940b51675dd6a979676ed9 (diff)
downloadmariadb-git-08763096cb8e8b1497d33a0bf29babfa67f6817a.tar.gz
Bug #19814337 - SERVER CRASHES IN ITEM_FUNC_GROUP_CONCAT::FIX_FIELDS ON
3RD EXECUTION OF PS Problem: When order by is by a column number for a group concat function which has an outer reference, server fails in case of prepared statements on the third execution Analysis: When a group concat function has order by, the fields in order by are not resolved until execution if the input is a column number. During execution they get resolved after the temp table gets created. As a result they will be pointing to temp table fields which are runtime created objects. This results in dangling pointers leading to server failure. Solution: Reset the pointers for the order by fields to point to the original arguments after execution as they are invalid. Done in Item_func_group_concat::cleanup.
Diffstat (limited to 'sql/sql_trigger.cc')
0 files changed, 0 insertions, 0 deletions