2013-04-09 15:31:29 +02:00
|
|
|
create table t1 (a int) engine=archive;
|
|
|
|
show create table t1;
|
|
|
|
Table Create Table
|
|
|
|
t1 CREATE TABLE `t1` (
|
|
|
|
`a` int(11) DEFAULT NULL
|
|
|
|
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1
|
|
|
|
insert t1 values (1);
|
|
|
|
show tables;
|
|
|
|
Tables_in_test
|
|
|
|
t1
|
|
|
|
#
|
|
|
|
# simple discover on use
|
|
|
|
#
|
|
|
|
flush tables;
|
|
|
|
insert t1 values (2);
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
1
|
|
|
|
2
|
2013-04-09 16:18:33 +02:00
|
|
|
t1.ARZ
|
|
|
|
t1.frm
|
2013-04-09 15:31:29 +02:00
|
|
|
#
|
2013-04-09 15:50:30 +02:00
|
|
|
# show tables
|
2013-04-09 15:31:29 +02:00
|
|
|
#
|
2013-04-09 15:50:30 +02:00
|
|
|
create table t2 (a int) engine=archive;
|
2013-04-09 15:57:09 +02:00
|
|
|
select * from t2;
|
|
|
|
a
|
2013-04-09 15:31:29 +02:00
|
|
|
flush tables;
|
|
|
|
show tables;
|
|
|
|
Tables_in_test
|
|
|
|
t1
|
2013-04-09 15:50:30 +02:00
|
|
|
t2
|
2013-04-09 16:18:33 +02:00
|
|
|
t1.ARZ
|
|
|
|
t2.ARZ
|
|
|
|
t2.frm
|
2013-04-09 15:31:29 +02:00
|
|
|
#
|
2013-04-09 15:50:30 +02:00
|
|
|
# show full tables
|
|
|
|
#
|
|
|
|
flush tables;
|
|
|
|
show full tables;
|
|
|
|
Tables_in_test Table_type
|
|
|
|
t1 BASE TABLE
|
|
|
|
t2 BASE TABLE
|
2013-04-09 16:18:33 +02:00
|
|
|
t1.ARZ
|
|
|
|
t2.ARZ
|
|
|
|
t2.frm
|
2013-04-09 15:50:30 +02:00
|
|
|
#
|
|
|
|
# discover on truncate
|
|
|
|
#
|
|
|
|
flush tables;
|
|
|
|
truncate table t1;
|
2013-04-09 23:27:07 +02:00
|
|
|
ERROR HY000: Storage engine ARCHIVE of the table `test`.`t1` doesn't have this option
|
2013-04-09 16:18:33 +02:00
|
|
|
t1.ARZ
|
|
|
|
t1.frm
|
|
|
|
t2.ARZ
|
|
|
|
t2.frm
|
2013-04-09 15:50:30 +02:00
|
|
|
#
|
|
|
|
# discover on rename
|
|
|
|
#
|
|
|
|
flush tables;
|
|
|
|
rename table t2 to t0;
|
2013-04-09 16:18:33 +02:00
|
|
|
t0.ARZ
|
|
|
|
t1.ARZ
|
|
|
|
t1.frm
|
2013-04-09 15:50:30 +02:00
|
|
|
#
|
2013-04-09 15:50:55 +02:00
|
|
|
# discover on HA_ERR_TABLE_DEF_CHANGED
|
|
|
|
#
|
|
|
|
alter table t1 modify a int default 5;
|
|
|
|
show create table t1;
|
|
|
|
Table Create Table
|
|
|
|
t1 CREATE TABLE `t1` (
|
|
|
|
`a` int(11) DEFAULT NULL
|
|
|
|
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1
|
|
|
|
#
|
2013-04-09 15:31:29 +02:00
|
|
|
# discover on drop
|
|
|
|
#
|
|
|
|
flush tables;
|
2013-04-09 16:06:54 +02:00
|
|
|
drop table t1;
|
2013-04-09 16:18:33 +02:00
|
|
|
t0.ARZ
|
2013-04-09 16:06:54 +02:00
|
|
|
#
|
|
|
|
# discover of table non-existance on drop
|
|
|
|
#
|
|
|
|
select * from t0;
|
|
|
|
a
|
|
|
|
flush tables;
|
|
|
|
drop table t0;
|
2013-04-09 16:18:33 +02:00
|
|
|
show status like 'Handler_discover';
|
|
|
|
Variable_name Value
|
2013-07-21 19:24:20 +02:00
|
|
|
Handler_discover 6
|
2013-04-09 15:31:29 +02:00
|
|
|
#
|
|
|
|
# Bug#45377: ARCHIVE tables aren't discoverable after OPTIMIZE
|
|
|
|
#
|
|
|
|
create table t1 (a int) engine=archive;
|
|
|
|
show create table t1;
|
|
|
|
Table Create Table
|
|
|
|
t1 CREATE TABLE `t1` (
|
|
|
|
`a` int(11) DEFAULT NULL
|
|
|
|
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1
|
|
|
|
insert into t1 values (1);
|
|
|
|
optimize table t1;
|
|
|
|
Table Op Msg_type Msg_text
|
|
|
|
test.t1 optimize status OK
|
|
|
|
flush tables;
|
|
|
|
insert into t1 values (2);
|
|
|
|
select * from t1 order by a;
|
|
|
|
a
|
|
|
|
1
|
|
|
|
2
|
|
|
|
show create table t1;
|
|
|
|
Table Create Table
|
|
|
|
t1 CREATE TABLE `t1` (
|
|
|
|
`a` int(11) DEFAULT NULL
|
|
|
|
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1
|
|
|
|
drop table t1;
|
|
|
|
#
|
|
|
|
# BUG#58205 - Valgrind failure in fn_format when called from
|
|
|
|
# archive_discover
|
|
|
|
#
|
|
|
|
create table `a/../`(a int) engine=archive;
|
2013-04-09 15:57:09 +02:00
|
|
|
select * from `a/../`;
|
|
|
|
a
|
|
|
|
flush tables;
|
2013-04-09 15:31:29 +02:00
|
|
|
drop table `a/../`;
|
2013-06-15 19:09:31 +02:00
|
|
|
create database test1;
|
|
|
|
create table test1.t1 (i int) engine=archive;
|
|
|
|
drop database test1;
|
2013-06-16 22:01:07 +02:00
|
|
|
create table t1 (a int) engine=archive;
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
flush tables;
|
|
|
|
select * from t1;
|
|
|
|
ERROR 42S02: Table 'test.t1' doesn't exist
|
2013-11-28 16:39:17 +01:00
|
|
|
create table t1 (a int) engine=archive;
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
flush tables;
|
|
|
|
create table t1 (a int) engine=archive;
|
2014-01-29 15:37:17 +02:00
|
|
|
flush tables;
|
|
|
|
create table t1 (a int) engine=archive;
|
2014-02-27 22:43:42 +01:00
|
|
|
ERROR 42S01: Table 't1' already exists
|
2013-11-28 16:39:17 +01:00
|
|
|
drop table t1;
|