diff options
author | Bjorn Munch <bjorn.munch@oracle.com> | 2010-11-14 13:24:29 +0100 |
---|---|---|
committer | Bjorn Munch <bjorn.munch@oracle.com> | 2010-11-14 13:24:29 +0100 |
commit | a7156add3148e099301228c66240034f28d26a8c (patch) | |
tree | 68dbc27781ec0248212165d7516d4b9e3c515a37 /sql/sql_string.h | |
parent | 44347966700538b4cb408cbe83bc4bbe3b369dad (diff) | |
parent | ae430c90059efd68cc0336d699bcc59c2bf5b31e (diff) | |
download | mariadb-git-a7156add3148e099301228c66240034f28d26a8c.tar.gz |
merge from 5.5
Diffstat (limited to 'sql/sql_string.h')
-rw-r--r-- | sql/sql_string.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sql/sql_string.h b/sql/sql_string.h index 0ce67108423..845b7c280b1 100644 --- a/sql/sql_string.h +++ b/sql/sql_string.h @@ -104,7 +104,7 @@ public: inline uint32 alloced_length() const { return Alloced_length;} inline char& operator [] (uint32 i) const { return Ptr[i]; } inline void length(uint32 len) { str_length=len ; } - inline bool is_empty() { return (str_length == 0); } + inline bool is_empty() const { return (str_length == 0); } inline void mark_as_const() { Alloced_length= 0;} inline const char *ptr() const { return Ptr; } inline char *c_ptr() @@ -265,8 +265,12 @@ public: CHARSET_INFO *csto, uint *errors); bool append(const String &s); bool append(const char *s); - bool append(const char *s,uint32 arg_length); - bool append(const char *s,uint32 arg_length, CHARSET_INFO *cs); + bool append(LEX_STRING *ls) + { + return append(ls->str, ls->length); + } + bool append(const char *s, uint32 arg_length); + bool append(const char *s, uint32 arg_length, CHARSET_INFO *cs); bool append_ulonglong(ulonglong val); bool append(IO_CACHE* file, uint32 arg_length); bool append_with_prefill(const char *s, uint32 arg_length, |