summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
authorunknown <sanja@montyprogram.com>2012-10-11 12:09:21 +0300
committerunknown <sanja@montyprogram.com>2012-10-11 12:09:21 +0300
commit8215ce4695e743d313e92f4d30f412f79958439c (patch)
treed4b7fd43f1f2221a9ddbf56edf9cc0c71f799174 /sql/item.cc
parenta9f9296891a6ca611878b930f5932f4dc3d9f2a6 (diff)
downloadmariadb-git-8215ce4695e743d313e92f4d30f412f79958439c.tar.gz
MDEV-3804:
MySQL fix for bug#11765413 removed (we have better and more general fix for the problem). Test suite added.
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item.cc b/sql/item.cc
index 4d80a153785..e0e7a4288da 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -6839,7 +6839,7 @@ bool Item_ref::fix_fields(THD *thd, Item **reference)
if (from_field != not_found_field)
{
Item_field* fld;
- if (!(fld= new Item_field(thd, last_checked_context, from_field)))
+ if (!(fld= new Item_field(from_field)))
goto error;
thd->change_item_tree(reference, fld);
mark_as_dependent(thd, last_checked_context->select_lex,