summaryrefslogtreecommitdiff
path: root/mysql-test/t/warnings.test
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2005-03-21 11:07:31 +0100
committerunknown <msvensson@neptunus.(none)>2005-03-21 11:07:31 +0100
commit11e01bfa2d5a764e3f6b772d252e047985a02186 (patch)
treef6d659d9c150bcf26329f8c51e45d6cdcb99b442 /mysql-test/t/warnings.test
parent4b454c6eedca79186b92756e5972ece01e24b1bb (diff)
downloadmariadb-git-11e01bfa2d5a764e3f6b772d252e047985a02186.tar.gz
BUG#9072 'Max_error_count' system variable cannot be set to zero
- Chaned min value in mysqld.cc - Added testcase to warnings.test mysql-test/r/warnings.result: Added testcase for testing max and min value of max_error_count mysql-test/t/warnings.test: Added testcase for testing max and min value of max_error_count sql/mysqld.cc: Change min value of max_error_count from 1 to 0
Diffstat (limited to 'mysql-test/t/warnings.test')
-rw-r--r--mysql-test/t/warnings.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/warnings.test b/mysql-test/t/warnings.test
index 23ab5aa1f05..2a90f5f637d 100644
--- a/mysql-test/t/warnings.test
+++ b/mysql-test/t/warnings.test
@@ -97,6 +97,19 @@ update t1 set b=a;
select @@warning_count;
--enable_ps_protocol
+# Bug#9072
+set max_error_count=0;
+show variables like 'max_error_count';
+update t1 set b='hi';
+--disable_ps_protocol
+select @@warning_count;
+--enable_ps_protocol
+show warnings;
+set max_error_count=65535;
+show variables like 'max_error_count';
+set max_error_count=10;
+show variables like 'max_error_count';
+
#
# Test for handler type
#