1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fixed compile failure in sql_print_warning in sql_acl.cc

This fixes compilation when using gcc 7.5.0
Apparantly this version of gcc does not support
enum privilege_t: unsigned long long forr printf
argument checking.
This commit is contained in:
Monty
2025-02-18 13:09:26 +02:00
parent 59ad3225ae
commit 059d06ae07
3 changed files with 5 additions and 5 deletions

View File

@@ -1561,10 +1561,10 @@ class User_table_json: public User_table
{
sql_print_warning("'user' entry '%s@%s' "
"has a wrong 'access' value 0x%llx "
"(allowed mask is 0x%llx, version_id=%lld)",
"(allowed mask is 0x%llx, version_id is %llu)",
safe_str(get_user(current_thd->mem_root)),
safe_str(get_host(current_thd->mem_root)),
access, mask, version_id);
access, (ulonglong) mask, version_id);
}
privilege_t adjust_access(ulonglong version_id, ulonglong access) const
@@ -10544,7 +10544,7 @@ static int handle_grant_table(THD *thd, const Grant_table_base& grant_table,
if (which_table != PROXIES_PRIV_TABLE)
{
DBUG_PRINT("loop",("scan fields: '%s'@'%s' '%s' '%s' '%s'",
user_from->user, user_from->host,
user_from->user.str, user_from->host.str,
get_field(thd->mem_root, table->field[1]) /*db*/,
get_field(thd->mem_root, table->field[3]) /*table*/,
get_field(thd->mem_root,