From fa043c72005db830628aeb539c3304b7a9034ec6 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 23 Feb 2002 14:00:07 +0200 Subject: [PATCH] Small addition to SHOW GRANTS --- sql/sql_acl.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 577084a650a..c5782f65798 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -2687,6 +2687,13 @@ int mysql_show_grants(THD *thd,LEX_USER *lex_user) #endif /* HAVE_OPENSSL */ if (want_access & GRANT_ACL) global.append(" WITH GRANT OPTION",18); + else if (acl_user->questions) + { + char buff[65], *p; // just as in int2str + global.append(" WITH MAX_QUERIES_PER_HOUR = ",29); + p=int2str(acl_user->questions,buff,10); + global.append(buff,p-buff); + } thd->packet.length(0); net_store_data(&thd->packet,global.ptr(),global.length()); if (my_net_write(&thd->net,(char*) thd->packet.ptr(),