From d0cea95f49d1d9d4ab72014dc382d3eb0d24cbac Mon Sep 17 00:00:00 2001 From: "Sinisa@sinisa.nasamreza.org" <> Date: Tue, 25 Jun 2002 21:20:10 +0300 Subject: Fix for a user management system that resources can be reset to zero with a GRANT statement. --- sql/sql_yacc.yy | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sql/sql_yacc.yy') 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: -- cgit v1.2.1