From b81d8b2e5ab7baa9623d0af002083057cda28a97 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Tue, 22 Nov 2011 18:05:34 +0100 Subject: Add support for signed sysvars. Make max_user_connections signed, with min allowed value being -1. --- sql/set_var.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/set_var.cc') diff --git a/sql/set_var.cc b/sql/set_var.cc index ce4d201672c..895facee6e9 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -308,7 +308,7 @@ void sys_var::do_deprecated_warning(THD *thd) bool throw_bounds_warning(THD *thd, const char *name, bool fixed, bool is_unsigned, longlong v) { - if (fixed || (!is_unsigned && v < 0)) + if (fixed) { char buf[22]; -- cgit v1.2.1