summaryrefslogtreecommitdiff
path: root/sql/sql_string.h
diff options
context:
space:
mode:
authorunknown <bar@gw.udmsearch.izhnet.ru>2002-03-20 20:52:23 +0400
committerunknown <bar@gw.udmsearch.izhnet.ru>2002-03-20 20:52:23 +0400
commit9f09ae660bcd27b4c19d85b4515b8566722c9eec (patch)
treee474b12ae053af5fe18330997fadb42b0c18303f /sql/sql_string.h
parentbbde41e9f79b7461da9795bd9ccb9fb314ff5ada (diff)
downloadmariadb-git-9f09ae660bcd27b4c19d85b4515b8566722c9eec.tar.gz
Added new method to set string's charset
sql/item_cmpfunc.cc: Fix for IN, when String->charset is empty
Diffstat (limited to 'sql/sql_string.h')
-rw-r--r--sql/sql_string.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_string.h b/sql/sql_string.h
index 811e49a0d02..9bf13b93628 100644
--- a/sql/sql_string.h
+++ b/sql/sql_string.h
@@ -74,6 +74,7 @@ public:
{ sql_element_free(ptr_arg); }
~String() { free(); }
+ inline void set_charset(CHARSET_INFO *charset) { str_charset=charset; }
inline CHARSET_INFO *charset() const { return str_charset; }
inline uint32 length() const { return str_length;}
inline uint32 alloced_length() const { return Alloced_length;}