1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-09 18:40:27 +03:00
Files
mariadb/storage/tokudb/mysql-test/tokudb_mariadb/r/alter.result
Sergei Golubchik 525c3c2435 TokuDB: make the default value for the table compression= attribute to come
from the variable @@session.tokudb_row_format
2014-03-26 09:33:54 +01:00

36 lines
906 B
Plaintext

create table t1 (i int) engine=TokuDB;
insert t1 values (1);
alter table t1 add column j int default '0';
select * from t1;
i j
1 0
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`i` int(11) DEFAULT NULL,
`j` int(11) DEFAULT '0'
) ENGINE=TokuDB DEFAULT CHARSET=latin1 `compression`='tokudb_zlib'
alter table t1 modify i int default '1';
select * from t1;
i j
1 0
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`i` int(11) DEFAULT '1',
`j` int(11) DEFAULT '0'
) ENGINE=TokuDB DEFAULT CHARSET=latin1 `compression`='tokudb_zlib'
alter table t1 modify j int default '2', rename t2;
select * from t1;
ERROR 42S02: Table 'test.t1' doesn't exist
select * from t2;
i j
1 0
show create table t2;
Table Create Table
t2 CREATE TABLE `t2` (
`i` int(11) DEFAULT '1',
`j` int(11) DEFAULT '2'
) ENGINE=TokuDB DEFAULT CHARSET=latin1 `compression`='tokudb_zlib'
drop table t2;