diff options
author | Bjorn Munch <bjorn.munch@oracle.com> | 2011-01-17 10:28:53 +0100 |
---|---|---|
committer | Bjorn Munch <bjorn.munch@oracle.com> | 2011-01-17 10:28:53 +0100 |
commit | 8ed50d99721130f1431d1b41491f4ad8232beeed (patch) | |
tree | 2148d39a13e0342996f9ccdf5f7c6ccb8b9f5912 /sql/sql_string.h | |
parent | 251869175e157a21d35191b301ef597a0aad986b (diff) | |
parent | 208b677637ef9d140c1629a0de4d4963c02ea533 (diff) | |
download | mariadb-git-8ed50d99721130f1431d1b41491f4ad8232beeed.tar.gz |
merge from 5.1 main
Diffstat (limited to 'sql/sql_string.h')
-rw-r--r-- | sql/sql_string.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/sql_string.h b/sql/sql_string.h index b15179bcbe5..092e194646f 100644 --- a/sql/sql_string.h +++ b/sql/sql_string.h @@ -136,6 +136,16 @@ public: Alloced_length=0; str_charset=str.str_charset; } + + + /** + Points the internal buffer to the supplied one. The old buffer is freed. + @param str Pointer to the new buffer. + @param arg_length Length of the new buffer in characters, excluding any + null character. + @param cs Character set to use for interpreting string data. + @note The new buffer will not be null terminated. + */ inline void set(char *str,uint32 arg_length, CHARSET_INFO *cs) { free(); |