summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.cc
diff options
context:
space:
mode:
authorunknown <igor@olga.mysql.com>2006-07-19 13:44:37 -0700
committerunknown <igor@olga.mysql.com>2006-07-19 13:44:37 -0700
commitef9e6346245d647e755c7ac710c5d95c4e58042a (patch)
treef85afecf459880f418091fe077500703bf3b6c70 /sql/item_strfunc.cc
parentec40f4a588faa4b759816fd619929088b0723c24 (diff)
parent6ec7976df97d5c9ced3f2e50339c74f19cda32fd (diff)
downloadmariadb-git-ef9e6346245d647e755c7ac710c5d95c4e58042a.tar.gz
Merge olga.mysql.com:/home/igor/mysql-4.1-opt
into olga.mysql.com:/home/igor/mysql-5.0-opt mysql-test/r/func_str.result: Auto merged mysql-test/t/func_str.test: Auto merged sql/item_strfunc.cc: Auto merged sql/item_strfunc.h: Auto merged
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 c03f360271f..7289c17f996 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -1503,6 +1503,23 @@ void Item_func_trim::fix_length_and_dec()
}
}
+void Item_func_trim::print(String *str)
+{
+ if (arg_count == 1)
+ {
+ Item_func::print(str);
+ return;
+ }
+ str->append(Item_func_trim::func_name());
+ str->append('(');
+ str->append(mode_name());
+ str->append(' ');
+ args[1]->print(str);
+ str->append(" from ",6);
+ args[0]->print(str);
+ str->append(')');
+}
+
/* Item_func_password */