diff options
author | unknown <bar@bar.mysql.r18.ru> | 2003-06-10 14:54:03 +0500 |
---|---|---|
committer | unknown <bar@bar.mysql.r18.ru> | 2003-06-10 14:54:03 +0500 |
commit | 8a40e2e8f81508ba66f9b3e9bab7b1896fb8482d (patch) | |
tree | f9aa22c9dbb79f6980e381c2d1c8d176bafe705a /sql/item_strfunc.h | |
parent | 4b420bb29bb871c10bcb15a4dfafeada38f45ce5 (diff) | |
download | mariadb-git-8a40e2e8f81508ba66f9b3e9bab7b1896fb8482d.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.h | 6 |
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 |