diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-05-23 14:57:29 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-05-23 14:58:03 +0400 |
commit | c83018751cc8eed11279eb6df555bd66c153fa9a (patch) | |
tree | 3d6fa41a975ca9ad1cee5308feda49b787183987 /sql/sql_class.cc | |
parent | 826f9d4f7e99973cafe7654697d7c50b8b64b76b (diff) | |
download | mariadb-git-c83018751cc8eed11279eb6df555bd66c153fa9a.tar.gz |
MDEV-19566 Remove Item::name related strlen() calls in constructors of some Item_string descendands
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index c17718bcff2..efde20faf30 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -2516,8 +2516,7 @@ THD::make_string_literal_charset(const Lex_string_with_metadata_st &str, { if (!str.length && (variables.sql_mode & MODE_EMPTY_STRING_IS_NULL)) return new (mem_root) Item_null(this, 0, cs); - return new (mem_root) Item_string_with_introducer(this, - str.str, (uint)str.length, cs); + return new (mem_root) Item_string_with_introducer(this, str, cs); } |