~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/r/interactive_timeout_func.result

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
drop table if exists t1;
 
2
## Creating new table t1 ##
 
3
CREATE TABLE t1
 
4
(
 
5
id INT NOT NULL auto_increment,
 
6
PRIMARY KEY (id),
 
7
name VARCHAR(30)
 
8
);
 
9
'#--------------------FN_DYNVARS_052_01-------------------------#'
 
10
## Setting initial value of variable to 1 ##
 
11
SET @@global.interactive_timeout = 1;
 
12
## Creating new interactive connection test_con1 ## 
 
13
## Inserting record in table ##
 
14
INSERT into t1(name) values('Record_1');
 
15
## Setting session value of interactive_timeout ## 
 
16
SET @@session.interactive_timeout = 1;
 
17
## Verifying values of variable ## 
 
18
SELECT @@session.interactive_timeout;
 
19
@@session.interactive_timeout
 
20
1
 
21
SELECT @@global.interactive_timeout;
 
22
@@global.interactive_timeout
 
23
1
 
24
## Using sleep to check timeout ## 
 
25
SELECT * from t1;
 
26
id      name
 
27
1       Record_1
 
28
'Bug#35377: Error should appear here because interactive_timeout value';
 
29
'is 1 and connection remains idle for 5 secs';
 
30
INSERT into t1(name) values('Record_2');