summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorunknown <ramil@mysql.com>2005-05-13 16:18:27 +0500
committerunknown <ramil@mysql.com>2005-05-13 16:18:27 +0500
commit7c1d520ef1a18ad397499de6d70debe5be81dd99 (patch)
treee0309c4f096ab1e6169944c36be8eb9af6208aae /mysql-test/r
parent4acfc0b6111fb069cc718b6b87d821407190999e (diff)
downloadmariadb-git-7c1d520ef1a18ad397499de6d70debe5be81dd99.tar.gz
a fix (bug #10339: Incorrect error is displayed if try to set value of internal ' warning_count ').
sql/set_var.cc: a fix (bug #10339: Incorrect error is displayed if try to set value of internal ' warning_count '). test for read only variables added. sql/set_var.h: a fix (bug #10339: Incorrect error is displayed if try to set value of internal ' warning_count '). sys_var::is_readonly() method introduced.
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/variables.result4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/r/variables.result b/mysql-test/r/variables.result
index 3479d209019..33b6d84e892 100644
--- a/mysql-test/r/variables.result
+++ b/mysql-test/r/variables.result
@@ -526,3 +526,7 @@ show warnings;
Level Code Message
Warning 1329 No data to FETCH
drop table t1;
+set @@warning_count=1;
+ERROR HY000: Variable 'warning_count' is a read only variable
+set @@global.error_count=1;
+ERROR HY000: Variable 'error_count' is a read only variable