summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2003-07-30 14:15:25 +0500
committerunknown <bar@bar.mysql.r18.ru>2003-07-30 14:15:25 +0500
commit53e4153de12d9288d55294826dbf30e4ce508224 (patch)
treedf4c09576cac4fe57abbc11b771fc656ef039ce2 /sql/item.cc
parent9149ca11e6179987fd29a34629d2f0f5eef58340 (diff)
downloadmariadb-git-53e4153de12d9288d55294826dbf30e4ce508224.tar.gz
Derivation attribute was not processed correctly
by MAX/MIN in some cases: SELECT coercibility(max(s1)) from t1; Subselect collation and derivation was not processed correctly: create table a select (select s1 from t1); select * from t1 where s1 = (select s2 from t1);
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 072dec4e6a6..ee8b77881cb 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -1442,7 +1442,7 @@ bool Item_ref::fix_fields(THD *thd,TABLE_LIST *tables, Item **reference)
max_length= (*ref)->max_length;
maybe_null= (*ref)->maybe_null;
decimals= (*ref)->decimals;
- set_charset((*ref)->charset());
+ collation.set((*ref)->collation);
with_sum_func= (*ref)->with_sum_func;
fixed= 1;