summaryrefslogtreecommitdiff
path: root/sql/key.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2020-08-14 20:22:43 +0300
committerSergei Golubchik <serg@mariadb.org>2021-05-19 22:27:29 +0200
commitb3bc02f923f6002e6a5bd6446b80575292e1b0c7 (patch)
tree3d5032511ca892a1ce4c0649b3a046cb83c92c7f /sql/key.cc
parent5c7d243b29257fe02edaea42730893d4d185ced5 (diff)
downloadmariadb-git-b3bc02f923f6002e6a5bd6446b80575292e1b0c7.tar.gz
Added ErrConvString.lex_cstring() to simplify code
This allows us to use String::append() without using strlen(). The changes to the ErrConvString class where done by Alexander Barkov
Diffstat (limited to 'sql/key.cc')
-rw-r--r--sql/key.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/key.cc b/sql/key.cc
index 53f897de15f..32b4bd9c167 100644
--- a/sql/key.cc
+++ b/sql/key.cc
@@ -393,7 +393,7 @@ void field_unpack(String *to, Field *field, const uchar *rec, uint max_length,
if (max_length < field->pack_length())
tmp.length(MY_MIN(tmp.length(),max_length));
ErrConvString err(&tmp);
- to->append(err.ptr());
+ to->append(err.lex_cstring());
}
else
to->append(STRING_WITH_LEN("???"));