summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.cc
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2003-07-04 20:19:07 +0500
committerunknown <bar@bar.mysql.r18.ru>2003-07-04 20:19:07 +0500
commit35332781ef6eb900dbba1873e436a1bc0ada0883 (patch)
treed020bda4212193202065c0bcd34c3ae3174bbb83 /sql/item_strfunc.cc
parent077b8328931177ff2d03f5f9c4b5b45d4c3d00b9 (diff)
downloadmariadb-git-35332781ef6eb900dbba1873e436a1bc0ada0883.tar.gz
More code was reused
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r--sql/item_strfunc.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc
index f46959e5365..2d29f76c2d7 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -1317,7 +1317,8 @@ void Item_func_trim::fix_length_and_dec()
remove.set_ascii(" ",1);
}
else
- if (collation.set(args[1]->collation, args[0]->collation))
+ if (collation.set(args[1]->collation, args[0]->collation) ||
+ collation.derivation == DERIVATION_NONE)
{
my_coll_agg_error(args[1]->collation, args[0]->collation, func_name());
}