1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-19776: Assertion `to_len >= 8' failed in convert_to_printable with optimizer trace enabled

Introduced the convert_to_printable_required_length to return the correct length(taking into
consideration of dots in the case of error messages).
This commit is contained in:
Varun Gupta
2019-06-20 12:03:32 +05:30
parent cfbd714868
commit 8b576616b4
5 changed files with 25 additions and 1 deletions

View File

@ -126,6 +126,7 @@ size_t my_copy_with_hex_escaping(CHARSET_INFO *cs,
uint convert_to_printable(char *to, size_t to_len,
const char *from, size_t from_len,
CHARSET_INFO *from_cs, size_t nbytes= 0);
size_t convert_to_printable_required_length(uint len);
class Charset