mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fix for a bug in SHOW GRANTS when :
grant on database.* to xx@yy with grant option; is done. sql/item.cc: fix for update of non-null column with function returning NULL
This commit is contained in:
@ -2894,6 +2894,8 @@ int mysql_show_grants(THD *thd,LEX_USER *lex_user)
|
||||
|
||||
if (test_all_bits(want_access,(DB_ACLS & ~GRANT_ACL)))
|
||||
db.append("ALL PRIVILEGES",14);
|
||||
else if (!(want_access & ~GRANT_ACL))
|
||||
db.append("USAGE",5);
|
||||
else
|
||||
{
|
||||
int found=0, cnt;
|
||||
|
Reference in New Issue
Block a user