@@ -11,6 +11,9 @@ SET @start_value = @@global.max_nonsuper_connections;
11
11
12
12
SET @@global.max_nonsuper_connections = 10;
13
13
SELECT @@global.max_nonsuper_connections;
14
+ --let $assert_text= Non_super_connections should be 0
15
+ --let $assert_cond= "[SHOW GLOBAL STATUS like \'Non_super_connections\', Value, 1]" = "0"
16
+ --source include/assert.inc
14
17
15
18
enable_connect_log;
16
19
connection default;
@@ -40,6 +43,10 @@ connect (con_root, localhost, root,,test);
40
43
--echo # connection con_root
41
44
connection con_root;
42
45
SELECT @@global.max_nonsuper_connections;
46
+ --let $assert_text= Non_super_connections should be 10
47
+ --let $assert_cond= "[SHOW GLOBAL STATUS like \'Non_super_connections\', Value, 1]" = "10"
48
+ --source include/assert.inc
49
+
43
50
disconnect con_root;
44
51
connection default;
45
52
@@ -49,6 +56,9 @@ connection default;
49
56
connect (con_super, localhost, super_user,,test);
50
57
connection con_super;
51
58
SELECT @@global.max_nonsuper_connections;
59
+ --let $assert_text= Non_super_connections should be 10
60
+ --let $assert_cond= "[SHOW GLOBAL STATUS like \'Non_super_connections\', Value, 1]" = "10"
61
+ --source include/assert.inc
52
62
53
63
#
54
64
# change admin user to regular user in the current connection will fail
@@ -129,6 +139,10 @@ enable_query_log;
129
139
connection default;
130
140
SET @@global.max_nonsuper_connections = @start_value;
131
141
SELECT @@global.max_nonsuper_connections;
142
+ --let $assert_text= Non_super_connections should be 10
143
+ --let $assert_cond= "[SHOW GLOBAL STATUS like \'Non_super_connections\', Value, 1]" = "10"
144
+ --source include/assert.inc
145
+
132
146
drop user test_user@localhost;
133
147
drop user super_user@localhost;
134
148
let $i= 10;
0 commit comments