diff options
author | unknown <pem@mysql.com> | 2004-08-23 15:29:55 +0200 |
---|---|---|
committer | unknown <pem@mysql.com> | 2004-08-23 15:29:55 +0200 |
commit | b7e4463dacb38d73492b3b039daf335a7fb0f76d (patch) | |
tree | cc10ea4b2e9efa4d9bf1c87d78e0cd35dee56059 /sql/mysqld.cc | |
parent | cb6dc5738cc41445725bbcb19ed33d45d1f5a48a (diff) | |
download | mariadb-git-b7e4463dacb38d73492b3b039daf335a7fb0f76d.tar.gz |
Fixed: BUG#5135: cannot turn on log_warnings with SET in 4.1 (and 4.0)
mysql-test/r/variables.result:
Test case for BUG#5135, check that setting log_warnings actually works.
mysql-test/t/variables.test:
Test case for BUG#5135, check that setting log_warnings actually works.
sql/mysqld.cc:
Set a max value for log_warnings, so se can set it to something other than 0.
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index e4d60fc9e7c..e20251adac4 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -3959,11 +3959,11 @@ replicating a LOAD DATA INFILE command", 0, 0, 0, 0}, {"log-warnings", 'W', "Log some not critical warnings to the log file", (gptr*) &global_system_variables.log_warnings, - (gptr*) &max_system_variables.log_warnings, 0, GET_ULONG, OPT_ARG, 1, 0, 0, + (gptr*) &max_system_variables.log_warnings, 0, GET_ULONG, OPT_ARG, 1, 0, ~0L, 0, 0, 0}, {"warnings", 'W', "Deprecated ; Use --log-warnings instead", (gptr*) &global_system_variables.log_warnings, - (gptr*) &max_system_variables.log_warnings, 0, GET_ULONG, OPT_ARG, 1, 0, 0, + (gptr*) &max_system_variables.log_warnings, 0, GET_ULONG, OPT_ARG, 1, 0, ~0L, 0, 0, 0}, { "back_log", OPT_BACK_LOG, "The number of outstanding connection requests MySQL can have. This comes into play when the main MySQL thread gets very many connection requests in a very short time.", |