~ubuntu-branches/ubuntu/trusty/mariadb-5.5/trusty-proposed

« back to all changes in this revision

Viewing changes to storage/tokudb/mysql-test/tokudb_bugs/t/frm_store3.test

  • Committer: Package Import Robot
  • Author(s): James Page, Otto Kekäläinen
  • Date: 2014-02-17 16:51:52 UTC
  • mfrom: (2.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140217165152-k315d3175g865kkx
Tags: 5.5.35-1
[ Otto Kekäläinen ]
* New upstream release, fixing the following security issues:
  - Buffer overflow in client/mysql.cc (Closes: #737597).
    - CVE-2014-0001
  - http://www.oracle.com/technetwork/topics/security/cpujan2014-1972949.html
    - CVE-2013-5891
    - CVE-2013-5908
    - CVE-2014-0386
    - CVE-2014-0393
    - CVE-2014-0401
    - CVE-2014-0402
    - CVE-2014-0412
    - CVE-2014-0420
    - CVE-2014-0437
* Upstream https://mariadb.atlassian.net/browse/MDEV-4902
  fixes compatibility with Bison 3.0 (Closes: #733002)
* Updated Russian debconf translation (Closes: #734426)
* Updated Japanese debconf translation (Closes: #735284)
* Updated French debconf translation (Closes: #736480)
* Renamed SONAME properly (Closes: #732967)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# ticket 895 is a query optimization problem with the primary key
 
2
 
 
3
--source include/have_tokudb.inc
 
4
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
 
5
 
 
6
--disable_warnings
 
7
DROP TABLE IF EXISTS foo,bar;
 
8
--enable_warnings
 
9
 
 
10
let $MYSQLD_DATADIR= `SELECT @@datadir`;
 
11
 
 
12
create table foo (a int, b int, key(b,a), primary key (a))engine=TokuDB;
 
13
create table bar (a bigint)engine=TokuDB;
 
14
alter table foo drop index b;
 
15
alter table bar add index (a);
 
16
 
 
17
# Write file to make mysql-test-run.pl expect the "crash", but don't start
 
18
# it until it's told to
 
19
--write_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
 
20
wait
 
21
EOF
 
22
 
 
23
# Send shutdown to the connected server and give
 
24
# it 10 seconds to die before zapping it
 
25
shutdown_server 10;
 
26
 
 
27
remove_file $MYSQLD_DATADIR/test/foo.frm;
 
28
copy_file $MYSQLD_DATADIR/test/bar.frm $MYSQLD_DATADIR/test/foo.frm;
 
29
remove_file $MYSQLD_DATADIR/test/bar.frm;
 
30
 
 
31
# Write file to make mysql-test-run.pl start up the server again
 
32
--append_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
 
33
restart
 
34
EOF
 
35
 
 
36
# Turn on reconnect
 
37
--enable_reconnect
 
38
 
 
39
# Call script that will poll the server waiting for it to be back online again
 
40
--source include/wait_until_connected_again.inc
 
41
 
 
42
# Turn off reconnect again
 
43
--disable_reconnect
 
44
 
 
45
show create table foo;
 
46
show create table bar;
 
47
 
 
48
# Final cleanup.
 
49
DROP TABLE foo,bar;
 
50