summaryrefslogtreecommitdiff
path: root/sql/sql_string.h
diff options
context:
space:
mode:
authorVarun Gupta <varun.gupta@mariadb.com>2019-06-20 12:03:32 +0530
committerVarun Gupta <varun.gupta@mariadb.com>2019-06-20 12:03:32 +0530
commit8b576616b442d061356bc5a2abd410f478e98ee7 (patch)
tree29cf92e96213c4f3a7f00294e0c8839b6f277ae4 /sql/sql_string.h
parentcfbd714868d6af284f1acfff361c098cbc525fff (diff)
downloadmariadb-git-8b576616b442d061356bc5a2abd410f478e98ee7.tar.gz
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).
Diffstat (limited to 'sql/sql_string.h')
-rw-r--r--sql/sql_string.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_string.h b/sql/sql_string.h
index d8edf5e81f0..f21f23e42ef 100644
--- a/sql/sql_string.h
+++ b/sql/sql_string.h
@@ -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