1
0
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:
unknown
2003-01-11 18:02:10 +02:00
parent 8a0a97f022
commit ca8498e89d
4 changed files with 11 additions and 1 deletions

View File

@ -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;