diff options
author | Sinisa@sinisa.nasamreza.org <> | 2002-06-25 21:20:10 +0300 |
---|---|---|
committer | Sinisa@sinisa.nasamreza.org <> | 2002-06-25 21:20:10 +0300 |
commit | d0cea95f49d1d9d4ab72014dc382d3eb0d24cbac (patch) | |
tree | f4a378e5c4a12d1d735ff95e378a82f208cbb5cb /sql/sql_yacc.yy | |
parent | 66e1777a3ece51668789911dd7f3ad5f91b48435 (diff) | |
download | mariadb-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.yy | 3 |
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: |