~ubuntu-branches/ubuntu/karmic/mysql-dfsg-5.1/karmic

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-02-10 16:42:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090210164205-ej41ocvm4z1s14nq
Tags: 5.1.31-1ubuntu1
* Merge from debian experimental, remaining changes: 
  - debian/mysql-server-5.1.config: ask for MySQL root password at priority
    high instead of medium so that the password prompt is seen on a default
    install. (LP: #319843)
  - debian/control: 
    + Don't build mysql-server, mysql-client, mysql-common and 
      libmysqlclient15-dev binary packages since they're still provided 
      by mysql-dfsg-5.0.
    + Rename libmysqlclient-dev package to libmysqlclient16-dev (LP: #316280).
      Make it conflict with libmysqlclient15-dev.
    + Make mysql-{client,server}-5.1 packages conflict and
      replace mysql-{client,server}-5.0, but not provide 
      mysql-{client,server}.
    + Depend on a specific version of mysql-common rather than the src 
      version of mysql-dfsg-5.1 since mysql-common is currently part of
      mysql-dfsg-5.0.
  - debian/rules: added -fno-strict-aliasing to CFLAGS to get
    around mysql testsuite build failures.
* debian/patches/92_ssl_test_cert.dpatch: certificate expiration in 
  test suite (LP: #323755).
* Dropped changes:
  - all of the changes made to support both 5.0 and 5.1 installed at the
    same time have been dropped now that amarok doesn't depend on
    mysql-server-5.1 anymore.

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
 
);
 
1
SET @start_value= @@global.wait_timeout;
9
2
'#--------------------FN_DYNVARS_186_01-------------------------#'
10
 
## Creating new connection test_con1 ## 
11
 
## Setting value of variable to 5 ##
12
 
SET @@session.wait_timeout = 5;
13
 
## Inserting record in table t1 ##
14
 
INSERT into t1(name) values('Record_1');
15
 
## Using sleep to check timeout ## 
16
 
'#--------------------FN_DYNVARS_186_02-------------------------#'
17
 
## Setting value of variable ##
18
 
SET @@global.wait_timeout = 5;
19
 
## Creating new connection test_con2 ## 
20
 
INSERT into t1(name) values('Record_2');
21
 
## Using sleep to check timeout ## 
 
3
SET @start_time= UNIX_TIMESTAMP();
 
4
connect (test_con1, localhost, root,,);
 
5
SELECT @@session.wait_timeout = @@global.wait_timeout AS 'Expect 1';
 
6
Expect 1
 
7
1
 
8
SET @@session.wait_timeout = <session_value>;
 
9
connect (test_con2, localhost, root,,);
 
10
SET @@session.wait_timeout = <session_value> - 1;
 
11
connection default;
 
12
wait until connections ready
 
13
SELECT info FROM information_schema.processlist;
 
14
info
 
15
SELECT info FROM information_schema.processlist
22
16
'#--------------------FN_DYNVARS_186_03-------------------------#'
23
 
## Setting value of variable to 1 ##
24
 
SET @@global.wait_timeout = 1;
25
 
## Creating new connection ## 
26
 
INSERT into t1(name) values('Record_3');
27
 
## Using sleep to check timeout ##
28
 
## We cannot test it further because the server stops due to wait_timeout ## 
29
 
SELECT * from t1;
30
 
ERROR HY000: MySQL server has gone away
 
17
SET @@global.wait_timeout= <global_value>;
 
18
SELECT @@session.wait_timeout = @start_value AS 'Expect 1';
 
19
Expect 1
 
20
1
 
21
connect (test_con3, localhost, root,,);
 
22
SELECT @@session.wait_timeout = @@global.wait_timeout AS 'Expect 1';
 
23
Expect 1
 
24
1
 
25
connection default;
 
26
SELECT info FROM information_schema.processlist;
 
27
info
 
28
SELECT info FROM information_schema.processlist
 
29
SELECT UNIX_TIMESTAMP() - @start_time >= <global_value> + <session_value>;;
 
30
UNIX_TIMESTAMP() - @start_time >= <global_value> + <session_value>;
 
31
1
 
32
SET @@global.wait_timeout= @start_value;