diff options
author | Alexander Barkov <bar@mariadb.org> | 2014-09-03 01:56:21 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2014-09-03 01:56:21 +0400 |
commit | fbaaf3688d5fac4b1b867155a9f09575367c0f98 (patch) | |
tree | 0e36d7dca37e6775e113c0547823dcd12ee502fe /sql/item.cc | |
parent | 658a1e9420b062f767316ecf1dcb4b2837dfa27a (diff) | |
download | mariadb-git-fbaaf3688d5fac4b1b867155a9f09575367c0f98.tar.gz |
Moving Item::str_value from public to protected.
Diffstat (limited to 'sql/item.cc')
-rw-r--r-- | sql/item.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sql/item.cc b/sql/item.cc index 64d6e8dd9c9..5e6409caf67 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -1280,16 +1280,13 @@ Item *Item_param::safe_charset_converter(CHARSET_INFO *tocs) String *ostr= val_str(&cnvstr); if (!needs_charset_converter(tocs)) return this; - cnvitem->str_value.copy(ostr->ptr(), ostr->length(), - ostr->charset(), tocs, &cnv_errors); + cnvitem->copy_value(ostr->ptr(), ostr->length(), + ostr->charset(), tocs, &cnv_errors); if (cnv_errors) return NULL; if (ostr->charset() == &my_charset_bin && tocs != &my_charset_bin && - !cnvitem->check_well_formed_result(&cnvitem->str_value, true)) + !cnvitem->check_well_formed_result(true)) return NULL; - cnvitem->str_value.mark_as_const(); - cnvitem->collation.set(tocs); - cnvitem->max_length= cnvitem->str_value.numchars() * tocs->mbmaxlen; return cnvitem; } return this; |