mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
#131 make fast and small aliases for quicklz and lzma. fix tests.
This commit is contained in:
parent
78df543d50
commit
a84ebecc48
3 changed files with 6 additions and 6 deletions
|
@ -69,7 +69,7 @@ foo CREATE TABLE `foo` (
|
|||
`a` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TokuDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 ROW_FORMAT=TOKUDB_FAST
|
||||
) ENGINE=TokuDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 ROW_FORMAT=TOKUDB_QUICKLZ
|
||||
select * from foo;
|
||||
a b
|
||||
1 11
|
||||
|
@ -82,7 +82,7 @@ foo CREATE TABLE `foo` (
|
|||
`a` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TokuDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 ROW_FORMAT=TOKUDB_SMALL
|
||||
) ENGINE=TokuDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 ROW_FORMAT=TOKUDB_LZMA
|
||||
select * from foo;
|
||||
a b
|
||||
1 11
|
||||
|
|
|
@ -81,7 +81,7 @@ foo CREATE TABLE `foo` (
|
|||
`c5` int(11) NOT NULL,
|
||||
`c6` int(11) NOT NULL,
|
||||
PRIMARY KEY (`c1`)
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1 ROW_FORMAT=TOKUDB_FAST
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1 ROW_FORMAT=TOKUDB_QUICKLZ
|
||||
ALTER TABLE foo row_format=TOKUDB_SMALL, add column c7 int not null;
|
||||
SELECT CREATE_OPTIONS
|
||||
FROM INFORMATION_SCHEMA.TABLES WHERE (table_name LIKE 'foo');
|
||||
|
@ -98,5 +98,5 @@ foo CREATE TABLE `foo` (
|
|||
`c6` int(11) NOT NULL,
|
||||
`c7` int(11) NOT NULL,
|
||||
PRIMARY KEY (`c1`)
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1 ROW_FORMAT=TOKUDB_SMALL
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1 ROW_FORMAT=TOKUDB_LZMA
|
||||
DROP TABLE foo;
|
||||
|
|
|
@ -3,12 +3,12 @@ DROP TABLE IF EXISTS foo;
|
|||
create table foo (a int)ROW_FORMAT=tokudb_small;
|
||||
select ROW_FORMAT from information_schema.tables where table_name='foo';
|
||||
ROW_FORMAT
|
||||
tokudb_small
|
||||
tokudb_lzma
|
||||
drop table foo;
|
||||
create table foo (a int)ROW_FORMAT=tokudb_fast;
|
||||
select ROW_FORMAT from information_schema.tables where table_name='foo';
|
||||
ROW_FORMAT
|
||||
tokudb_fast
|
||||
tokudb_quicklz
|
||||
drop table foo;
|
||||
create table foo (a int)ROW_FORMAT=tokudb_zlib;
|
||||
select ROW_FORMAT from information_schema.tables where table_name='foo';
|
||||
|
|
Loading…
Reference in a new issue