diff options
author | unknown <bar@bar.mysql.r18.ru> | 2002-10-25 13:58:32 +0500 |
---|---|---|
committer | unknown <bar@bar.mysql.r18.ru> | 2002-10-25 13:58:32 +0500 |
commit | e8237515485b53bd0662e5fc5592bea5507594b8 (patch) | |
tree | d8d121f81f5cf89edfe070e49636482fd879f1fa /sql/item_strfunc.h | |
parent | 372b26e7786dcc812bc5fd2e8541d8c58201ea5b (diff) | |
download | mariadb-git-e8237515485b53bd0662e5fc5592bea5507594b8.tar.gz |
BINARY charset is now used instead of binary_flag
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r-- | sql/item_strfunc.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h index b98be7829fb..aab67f21649 100644 --- a/sql/item_strfunc.h +++ b/sql/item_strfunc.h @@ -395,7 +395,7 @@ class Item_func_char :public Item_str_func public: Item_func_char(List<Item> &list) :Item_str_func(list) {} String *val_str(String *); - void fix_length_and_dec() { maybe_null=0; max_length=arg_count; binary=0;} + void fix_length_and_dec() { maybe_null=0; max_length=arg_count; } const char *func_name() const { return "char"; } }; @@ -467,7 +467,11 @@ public: null_value=args[0]->null_value; return tmp; } - void fix_length_and_dec() { binary=1; max_length=args[0]->max_length; } + void fix_length_and_dec() + { + str_value.set_charset(my_charset_bin); + max_length=args[0]->max_length; + } void print(String *str) { print_op(str); } }; @@ -480,7 +484,11 @@ public: String *val_str(String *); const char *func_name() const { return "load_file"; } void fix_length_and_dec() - { binary=1; maybe_null=1; max_length=MAX_BLOB_WIDTH;} + { + str_value.set_charset(my_charset_bin); + maybe_null=1; + max_length=MAX_BLOB_WIDTH; + } }; |