diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2020-03-16 16:53:10 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2020-04-01 11:34:32 +0200 |
commit | cb4da5da74b7a6f2e7c4f4ed1b0e5affe45fe2a2 (patch) | |
tree | fdeecd66c05478818479deb89a5dd0cabd99956a /plugin | |
parent | a1846b7a642dd5b5b36f3d4f0099cb7c0149f859 (diff) | |
download | mariadb-git-cb4da5da74b7a6f2e7c4f4ed1b0e5affe45fe2a2.tar.gz |
MDEV-20604: Duplicate key value is silently truncated to 64 characters in print_keydup_error
Added indication of truncated string for "s" and "M" formats
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/server_audit/server_audit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/server_audit/server_audit.c b/plugin/server_audit/server_audit.c index e21a0aedb85..85bf3c03f9a 100644 --- a/plugin/server_audit/server_audit.c +++ b/plugin/server_audit/server_audit.c @@ -761,7 +761,7 @@ static int user_coll_fill(struct user_coll *c, char *users, if (cmp_user && take_over_cmp) { ADD_ATOMIC(internal_stop_logging, 1); - CLIENT_ERROR(1, "User '%.*s' was removed from the" + CLIENT_ERROR(1, "User '%.*b' was removed from the" " server_audit_excl_users.", MYF(ME_JUST_WARNING), (int) cmp_length, users); ADD_ATOMIC(internal_stop_logging, -1); @@ -771,7 +771,7 @@ static int user_coll_fill(struct user_coll *c, char *users, else if (cmp_user) { ADD_ATOMIC(internal_stop_logging, 1); - CLIENT_ERROR(1, "User '%.*s' is in the server_audit_incl_users, " + CLIENT_ERROR(1, "User '%.*b' is in the server_audit_incl_users, " "so wasn't added.", MYF(ME_JUST_WARNING), (int) cmp_length, users); ADD_ATOMIC(internal_stop_logging, -1); remove_user(users); |