summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.cc
diff options
context:
space:
mode:
authorjoerg@trift2. <>2007-08-22 16:08:55 +0200
committerjoerg@trift2. <>2007-08-22 16:08:55 +0200
commit20ce6067979029b13b8c5f30fb8c2d15d2734185 (patch)
tree1fb3db1e70d1cfafa565a1663146372b5c734951 /sql/item_strfunc.cc
parent057c591e29cf953adef3eabc8e783298849627ad (diff)
parente33ff1c708bd48b71ee48a8250a691a535d20de2 (diff)
downloadmariadb-git-20ce6067979029b13b8c5f30fb8c2d15d2734185.tar.gz
Merge trift2.:/MySQL/M51/target-5.1.22
into trift2.:/MySQL/M51/push-5.1 Includes manual merges.
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r--sql/item_strfunc.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc
index 8ac812ec34a..d1c8e7a37e8 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -1049,6 +1049,23 @@ String *Item_str_conv::val_str(String *str)
}
+void Item_func_lcase::fix_length_and_dec()
+{
+ collation.set(args[0]->collation);
+ multiply= collation.collation->casedn_multiply;
+ converter= collation.collation->cset->casedn;
+ max_length= args[0]->max_length * multiply;
+}
+
+void Item_func_ucase::fix_length_and_dec()
+{
+ collation.set(args[0]->collation);
+ multiply= collation.collation->caseup_multiply;
+ converter= collation.collation->cset->caseup;
+ max_length= args[0]->max_length * multiply;
+}
+
+
String *Item_func_left::val_str(String *str)
{
DBUG_ASSERT(fixed == 1);