summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.h
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2003-06-10 14:54:03 +0500
committerunknown <bar@bar.mysql.r18.ru>2003-06-10 14:54:03 +0500
commite2a4980a19eeb0a14ac65d3683adbc944ae88b02 (patch)
treef9aa22c9dbb79f6980e381c2d1c8d176bafe705a /sql/item_strfunc.h
parent78af5a627aada001726ce5d2ec3e50a68dd1aa04 (diff)
downloadmariadb-git-e2a4980a19eeb0a14ac65d3683adbc944ae88b02.tar.gz
Some more functions work according to coercibility now:
repeat, reverse, quote, soundex, substring Test func_str has been extended to check them
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r--sql/item_strfunc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h
index a70c9b39255..31d6c1fe89d 100644
--- a/sql/item_strfunc.h
+++ b/sql/item_strfunc.h
@@ -571,7 +571,11 @@ public:
Item_func_quote(Item *a) :Item_str_func(a) {}
const char *func_name() const { return "quote"; }
String *val_str(String *);
- void fix_length_and_dec() { max_length= args[0]->max_length * 2 + 2; }
+ void fix_length_and_dec()
+ {
+ set_charset(args[0]->charset(), args[0]->coercibility);
+ max_length= args[0]->max_length * 2 + 2;
+ }
};
class Item_func_conv_charset :public Item_str_func