summaryrefslogtreecommitdiff
path: root/sql/item_sum.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_sum.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_sum.cc')
-rw-r--r--sql/item_sum.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc
index 8d3d0de466a..aa146926eb5 100644
--- a/sql/item_sum.cc
+++ b/sql/item_sum.cc
@@ -199,7 +199,7 @@ Item_sum_hybrid::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
decimals=item->decimals;
maybe_null=item->maybe_null;
unsigned_flag=item->unsigned_flag;
- set_charset(item->charset());
+ collation.set(item->collation);
result_field=0;
null_value=1;
fix_length_and_dec();