summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
authorSinisa@sinisa.nasamreza.org <>2002-06-25 21:20:10 +0300
committerSinisa@sinisa.nasamreza.org <>2002-06-25 21:20:10 +0300
commitd0cea95f49d1d9d4ab72014dc382d3eb0d24cbac (patch)
treef4a378e5c4a12d1d735ff95e378a82f208cbb5cb /sql/sql_yacc.yy
parent66e1777a3ece51668789911dd7f3ad5f91b48435 (diff)
downloadmariadb-git-d0cea95f49d1d9d4ab72014dc382d3eb0d24cbac.tar.gz
Fix for a user management system that resources can be reset to zero
with a GRANT statement.
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index dcb5f680357..7b3dc7db52e 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -3669,14 +3669,17 @@ grant_option:
| MAX_QUERIES_PER_HOUR ULONG_NUM
{
Lex->mqh.questions=$2;
+ Lex->mqh.bits |= 1;
}
| MAX_UPDATES_PER_HOUR ULONG_NUM
{
Lex->mqh.updates=$2;
+ Lex->mqh.bits |= 2;
}
| MAX_CONNECTIONS_PER_HOUR ULONG_NUM
{
Lex->mqh.connections=$2;
+ Lex->mqh.bits |= 4;
};
begin: