summaryrefslogtreecommitdiff
path: root/storage/tokudb/mysql-test/tokudb_bugs/t/frm_store.test
blob: 8b6df4966f4989b6cdb1640b7c337e4bff6eb653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# ticket 895 is a query optimization problem with the primary key

--source include/have_tokudb.inc
SET DEFAULT_STORAGE_ENGINE = 'tokudb';

--disable_warnings
DROP TABLE IF EXISTS foo,bar;
--enable_warnings

let $MYSQLD_DATADIR= `SELECT @@datadir`;

create table foo (a int, b int);
create table bar (a int, key(a));

--source include/shutdown_mysqld.inc
remove_file $MYSQLD_DATADIR/test/foo.frm;
copy_file $MYSQLD_DATADIR/test/bar.frm $MYSQLD_DATADIR/test/foo.frm;
remove_file $MYSQLD_DATADIR/test/bar.frm;
--source include/start_mysqld.inc

show create table foo;
show create table bar;

# Final cleanup.
DROP TABLE foo,bar;