diff options
author | unknown <dkatz@damien-katzs-computer.local> | 2007-12-11 17:30:42 -0500 |
---|---|---|
committer | unknown <dkatz@damien-katzs-computer.local> | 2007-12-11 17:30:42 -0500 |
commit | 2db4748bf2675a1d0b33039c425175f4e2b39940 (patch) | |
tree | 7aa64364ea7cd07ed83c6b43e43add03381408bc /mysql-test | |
parent | ede6f50a6a92aef2bf1105d4da98796ca309c3bd (diff) | |
download | mariadb-git-2db4748bf2675a1d0b33039c425175f4e2b39940.tar.gz |
Bug #30651 Problems with thread_handling system variable
Changed thread_handling variable to a global only, read only variable, as it is currently used.
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/no-threads.result | 4 | ||||
-rw-r--r-- | mysql-test/t/no-threads.test | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/r/no-threads.result b/mysql-test/r/no-threads.result index aefecd0f7bc..9bc2dad6e2a 100644 --- a/mysql-test/r/no-threads.result +++ b/mysql-test/r/no-threads.result @@ -7,3 +7,7 @@ select 1+2; SHOW GLOBAL VARIABLES LIKE 'thread_handling'; Variable_name Value thread_handling no-threads +select @@session.thread_handling; +ERROR HY000: Variable 'thread_handling' is a GLOBAL variable +set GLOBAL thread_handling='one-thread'; +ERROR HY000: Variable 'thread_handling' is a read only variable diff --git a/mysql-test/t/no-threads.test b/mysql-test/t/no-threads.test index 31ea6406ee9..fd8365e5678 100644 --- a/mysql-test/t/no-threads.test +++ b/mysql-test/t/no-threads.test @@ -4,3 +4,13 @@ select 1+1; select 1+2; SHOW GLOBAL VARIABLES LIKE 'thread_handling'; + +# +# Bug #30651 Problems with thread_handling system variable +# + +--error ER_INCORRECT_GLOBAL_LOCAL_VAR +select @@session.thread_handling; + +--error ER_INCORRECT_GLOBAL_LOCAL_VAR +set GLOBAL thread_handling='one-thread'; |