diff options
author | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2020-07-27 19:07:08 +0530 |
---|---|---|
committer | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2020-08-04 10:55:21 +0530 |
commit | 5fb07d22f175f9c343d0299340eb3bebcaf6c838 (patch) | |
tree | a1c9e954425044519ee4b232b0b6f2dfcfa5c403 /sql/sql_select.h | |
parent | 745fa255ba73ab8b703481c4c420bfec7d11f6b3 (diff) | |
download | mariadb-git-5fb07d22f175f9c343d0299340eb3bebcaf6c838.tar.gz |
MDEV-23082: ER_TABLEACCESS_DENIED_ERROR error message is truncated,
and inaccurately
Analysis: The list of all privileges is 118 characters wide. However, the
format of error message was: "%-.32s command denied to user...". get_length()
sets the maximum width to 32 characters. As a result, only first 32
characters of list of privilege are stored.
Fix: Changing the format to "%-.100T..." so that get_length() sets width to
100. Hence, first 100 characters of the list of privilege are stored and the
type specifier 'T' appends '...' so that truncation can be seen.
Diffstat (limited to 'sql/sql_select.h')
0 files changed, 0 insertions, 0 deletions