diff options
author | unknown <ramil@mysql.com> | 2005-05-13 16:18:27 +0500 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2005-05-13 16:18:27 +0500 |
commit | 7c1d520ef1a18ad397499de6d70debe5be81dd99 (patch) | |
tree | e0309c4f096ab1e6169944c36be8eb9af6208aae /mysql-test | |
parent | 4acfc0b6111fb069cc718b6b87d821407190999e (diff) | |
download | mariadb-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')
-rw-r--r-- | mysql-test/r/variables.result | 4 | ||||
-rw-r--r-- | mysql-test/t/variables.test | 8 |
2 files changed, 12 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 diff --git a/mysql-test/t/variables.test b/mysql-test/t/variables.test index 9931b72599f..f821d88bd96 100644 --- a/mysql-test/t/variables.test +++ b/mysql-test/t/variables.test @@ -395,3 +395,11 @@ select a into @x from t1; show warnings; drop table t1; +# +# Bug #10339: read only variables. +# + +--error 1238 +set @@warning_count=1; +--error 1238 +set @@global.error_count=1; |