diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-11-22 18:05:34 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-11-22 18:05:34 +0100 |
commit | b81d8b2e5ab7baa9623d0af002083057cda28a97 (patch) | |
tree | 0b2ebd731ba2cd0aea9454140b5f05b8673ec4ba /sql/sys_vars.cc | |
parent | d2755a2c9c109ddb4e2e0c9feda89431a6c4fd50 (diff) | |
download | mariadb-git-b81d8b2e5ab7baa9623d0af002083057cda28a97.tar.gz |
Add support for signed sysvars.
Make max_user_connections signed, with min allowed value being -1.
Diffstat (limited to 'sql/sys_vars.cc')
-rw-r--r-- | sql/sys_vars.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc index 6314a296b33..ef0e01b6e4e 100644 --- a/sql/sys_vars.cc +++ b/sql/sys_vars.cc @@ -1255,7 +1255,7 @@ static Sys_var_max_user_conn Sys_max_user_connections( "The maximum number of active connections for a single user " "(0 = no limit)", SESSION_VAR(max_user_connections), CMD_LINE(REQUIRED_ARG), - VALID_RANGE(0, INT_MAX), DEFAULT(0), BLOCK_SIZE(1), NO_MUTEX_GUARD, + VALID_RANGE(-1, INT_MAX), DEFAULT(0), BLOCK_SIZE(1), NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(if_checking_enabled)); static Sys_var_ulong Sys_max_tmp_tables( |