blob: 8da5bd07be41d1a3f213b3fc7fb775e70cf87d91 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
SET @saved_dbug = @@debug_dbug;
SET debug_dbug='+d,unstable_db_type';
install soname 'ha_archive';
create table t1 (a int) engine=archive;
insert t1 values (1),(2),(3);
create table t2 (a int) engine=archive partition by hash(a) partitions 3;
flush tables;
uninstall soname 'ha_archive';
select table_schema, table_name from information_schema.tables where table_name like 't_' order by 1,2;
table_schema table_name
test t1
test t2
select table_schema, table_name, engine, version from information_schema.tables where table_name like 't_' order by 1,2;
table_schema table_name engine version
test t1 ARCHIVE NULL
test t2 NULL NULL
Warnings:
Warning 1033 Incorrect information in file: './test/t2.frm'
Warning 1286 Unknown storage engine 'ARCHIVE'
select table_schema, table_name, engine, row_format from information_schema.tables where table_name like 't_' order by 1,2;
table_schema table_name engine row_format
test t1 ARCHIVE NULL
test t2 NULL NULL
Warnings:
Warning 1033 Incorrect information in file: './test/t2.frm'
Warning 1286 Unknown storage engine 'ARCHIVE'
install soname 'ha_archive';
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
show create table t2;
Table Create Table
t2 CREATE TABLE `t2` (
`a` int(11) DEFAULT NULL
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
PARTITION BY HASH (`a`)
PARTITIONS 3
db.opt
t1.ARZ
t1.frm
t2#P#p0.ARZ
t2#P#p1.ARZ
t2#P#p2.ARZ
t2.frm
t2.par
drop table t1;
drop table t2;
db.opt
uninstall soname 'ha_archive';
SET debug_dbug=@saved_dbug;
|