summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/t/open_files_limit_basic.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/sys_vars/t/open_files_limit_basic.test')
-rw-r--r--mysql-test/suite/sys_vars/t/open_files_limit_basic.test24
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/suite/sys_vars/t/open_files_limit_basic.test b/mysql-test/suite/sys_vars/t/open_files_limit_basic.test
new file mode 100644
index 00000000000..50c0b2d5b6e
--- /dev/null
+++ b/mysql-test/suite/sys_vars/t/open_files_limit_basic.test
@@ -0,0 +1,24 @@
+#
+# show the global and session values;
+#
+--replace_result 3072 1024 16384 1024
+select @@global.open_files_limit;
+--error ER_INCORRECT_GLOBAL_LOCAL_VAR
+select @@session.open_files_limit;
+--replace_result 3072 1024 16384 1024
+show global variables like 'open_files_limit';
+--replace_result 3072 1024 16384 1024
+show session variables like 'open_files_limit';
+--replace_result 3072 1024 16384 1024
+select * from information_schema.global_variables where variable_name='open_files_limit';
+--replace_result 3072 1024 16384 1024
+select * from information_schema.session_variables where variable_name='open_files_limit';
+
+#
+# show that it's read-only
+#
+--error ER_INCORRECT_GLOBAL_LOCAL_VAR
+set global open_files_limit=1;
+--error ER_INCORRECT_GLOBAL_LOCAL_VAR
+set session open_files_limit=1;
+