mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
that is, after
commit dd8f931957
Author: Sergei Golubchik <serg@mariadb.org>
Date: Fri Apr 10 02:36:54 2015 +0200
be less annoying about sysvar-based table attributes
do not *always* add them to the create table definition,
but only when a sysvar value is different from a default.
also, when adding them - don't quote numbers
20 lines
575 B
Plaintext
20 lines
575 B
Plaintext
drop table if exists t1;
|
|
create table t1 (c1 int not null primary key, c2 int not null) engine=tokudb;
|
|
show create table t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`c1` int(11) NOT NULL,
|
|
`c2` int(11) NOT NULL,
|
|
PRIMARY KEY (`c1`)
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
insert into t1 (c1,c2) values (1,1),(2,2);
|
|
alter table t1 compression=tokudb_lzma;
|
|
show create table t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`c1` int(11) NOT NULL,
|
|
`c2` int(11) NOT NULL,
|
|
PRIMARY KEY (`c1`)
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1 `compression`=tokudb_lzma
|
|
drop table t1;
|