mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
WL#4681: Took the system variable tests out of the main test suite, put them into "sys_vars", updated some reult files and tests.
This commit is contained in:
30
mysql-test/suite/sys_vars/r/interactive_timeout_func.result
Normal file
30
mysql-test/suite/sys_vars/r/interactive_timeout_func.result
Normal file
@@ -0,0 +1,30 @@
|
||||
drop table if exists t1;
|
||||
## Creating new table t1 ##
|
||||
CREATE TABLE t1
|
||||
(
|
||||
id INT NOT NULL auto_increment,
|
||||
PRIMARY KEY (id),
|
||||
name VARCHAR(30)
|
||||
);
|
||||
'#--------------------FN_DYNVARS_052_01-------------------------#'
|
||||
## Setting initial value of variable to 1 ##
|
||||
SET @@global.interactive_timeout = 1;
|
||||
## Creating new interactive connection test_con1 ##
|
||||
## Inserting record in table ##
|
||||
INSERT into t1(name) values('Record_1');
|
||||
## Setting session value of interactive_timeout ##
|
||||
SET @@session.interactive_timeout = 1;
|
||||
## Verifying values of variable ##
|
||||
SELECT @@session.interactive_timeout;
|
||||
@@session.interactive_timeout
|
||||
1
|
||||
SELECT @@global.interactive_timeout;
|
||||
@@global.interactive_timeout
|
||||
1
|
||||
## Using sleep to check timeout ##
|
||||
SELECT * from t1;
|
||||
id name
|
||||
1 Record_1
|
||||
'Bug#35377: Error should appear here because interactive_timeout value';
|
||||
'is 1 and connection remains idle for 5 secs';
|
||||
INSERT into t1(name) values('Record_2');
|
||||
Reference in New Issue
Block a user