summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.h
diff options
context:
space:
mode:
authorbar@mysql.com <>2005-11-07 12:34:19 +0400
committerbar@mysql.com <>2005-11-07 12:34:19 +0400
commit1946d68f998e050cbebf50401d307fb48fd18258 (patch)
tree8e98af338f584a95ea86d3f6720564cbd14a6f1c /sql/item_strfunc.h
parent60a4b4fb16b3a502ddc7d6d051518c6e0b96c7bd (diff)
downloadmariadb-git-1946d68f998e050cbebf50401d307fb48fd18258.tar.gz
Bug#14146 CHAR(...USING ...) and CONVERT(CHAR(...) USING...) produce different results
ctype_utf8.result, ctype_utf8.test: Adding test case. item_strfunc.cc: item_strfunc.h: Moving the well formed checking code into a method, to reuse in several Item_func_xxx. Reusing the new method in Item_func_char and Item_func_charset_conv.
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r--sql/item_strfunc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h
index 5889821293d..d196fac87e8 100644
--- a/sql/item_strfunc.h
+++ b/sql/item_strfunc.h
@@ -35,6 +35,7 @@ public:
double val_real();
enum Item_result result_type () const { return STRING_RESULT; }
void left_right_max_length();
+ String *check_well_formed_result(String *str);
};
class Item_func_md5 :public Item_str_func