mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
#4623 change ENGINE=TOKUDB to ENGINE=TokuDB in the common tokudb test result files refs[t:4623]
git-svn-id: file:///svn/mysql/tests/mysql-test@40974 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
94d9c535cf
commit
a0dab9b34f
67 changed files with 161 additions and 161 deletions
|
@ -33,7 +33,7 @@ foo CREATE TABLE `foo` (
|
|||
`b` varchar(10) DEFAULT NULL,
|
||||
`c` blob,
|
||||
KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
select * from foo;
|
||||
a b c
|
||||
1 bb cccc
|
||||
|
|
|
@ -18,7 +18,7 @@ foo CREATE TABLE `foo` (
|
|||
PRIMARY KEY (`aa`),
|
||||
KEY `b` (`b`),
|
||||
CLUSTERING KEY `d` (`d`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
select * from foo;
|
||||
aa b c d e
|
||||
1 10 cc dddd eeeee
|
||||
|
@ -40,7 +40,7 @@ foo CREATE TABLE `foo` (
|
|||
PRIMARY KEY (`aa`),
|
||||
KEY `b` (`bb`),
|
||||
CLUSTERING KEY `d` (`d`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
explain select bb from foo FORCE INDEX (b) where bb > 5;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE foo index b b 9 NULL 1 Using where; Using index
|
||||
|
@ -59,7 +59,7 @@ foo CREATE TABLE `foo` (
|
|||
PRIMARY KEY (`aa`),
|
||||
KEY `b` (`bb`),
|
||||
CLUSTERING KEY `d` (`dd`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
explain select * from foo where dd > "d";
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE foo range d d 13 NULL 1 Using where
|
||||
|
|
|
@ -66,7 +66,7 @@ foo CREATE TABLE `foo` (
|
|||
UNIQUE KEY `c` (`c`),
|
||||
KEY `d` (`d`),
|
||||
CLUSTERING KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
alter table foo change column aa aa int NOT NULL;
|
||||
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
|
||||
alter table foo change column aa aa bigint;
|
||||
|
|
|
@ -62,7 +62,7 @@ foo CREATE TABLE `foo` (
|
|||
UNIQUE KEY `c` (`c`),
|
||||
KEY `d` (`d`),
|
||||
CLUSTERING KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table foo_isam;
|
||||
Table Create Table
|
||||
foo_isam CREATE TABLE `foo_isam` (
|
||||
|
|
Binary file not shown.
|
@ -389,7 +389,7 @@ t1 CREATE TABLE `t1` (
|
|||
`t1_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY (`t1_id`),
|
||||
KEY `t1_name` (`t1_name`)
|
||||
) ENGINE=TOKUDB AUTO_INCREMENT=1003 DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB AUTO_INCREMENT=1003 DEFAULT CHARSET=latin1
|
||||
DROP TABLE `t1`;
|
||||
create table t1(a int not null auto_increment primary key);
|
||||
create table t2(a int not null auto_increment primary key, t1a int);
|
||||
|
|
|
@ -12,7 +12,7 @@ foo CREATE TABLE `foo` (
|
|||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL,
|
||||
KEY `a` (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
begin;
|
||||
insert into foo values (1,10,100),(2,20,200),(3,30,300);
|
||||
set session transaction isolation level read uncommitted;
|
||||
|
@ -34,7 +34,7 @@ foo CREATE TABLE `foo` (
|
|||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL,
|
||||
KEY `a` (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
begin;
|
||||
insert into foo values (1,10,100),(2,20,200),(3,30,300);
|
||||
insert into foo values (100,100,100);
|
||||
|
@ -55,7 +55,7 @@ foo CREATE TABLE `foo` (
|
|||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL,
|
||||
KEY `a` (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
begin;
|
||||
insert into foo values (1,10,100),(2,20,200),(3,30,300);
|
||||
insert into foo values (100,100,100);
|
||||
|
|
|
@ -27,7 +27,7 @@ KEY `code` (`code`),
|
|||
KEY `last_action` (`last_action`),
|
||||
KEY `last_login` (`last_login`),
|
||||
KEY `admin` (`admin`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=utf8;
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=utf8;
|
||||
ALTER TABLE `foo` ADD `gender` TINYINT NULL AFTER `website` ,
|
||||
ADD `influence` INT NOT NULL DEFAULT '0' AFTER `gender` ,
|
||||
ADD `virality` INT NOT NULL DEFAULT '0' AFTER `influence`;
|
||||
|
|
|
@ -8,7 +8,7 @@ Table Create Table
|
|||
foo CREATE TABLE `foo` (
|
||||
`a` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into foo values(1);
|
||||
select * from foo;
|
||||
a
|
||||
|
@ -20,7 +20,7 @@ Table Create Table
|
|||
foo CREATE TABLE `foo` (
|
||||
`a` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
select * from foo;
|
||||
a
|
||||
1
|
||||
|
@ -45,7 +45,7 @@ Table Create Table
|
|||
foo CREATE TABLE `foo` (
|
||||
`a` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
select * from foo;
|
||||
a
|
||||
1
|
||||
|
@ -67,7 +67,7 @@ Table Create Table
|
|||
foo CREATE TABLE `foo` (
|
||||
`a` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into foo values(1);
|
||||
select * from foo;
|
||||
a
|
||||
|
@ -84,7 +84,7 @@ show create table fooff;
|
|||
Table Create Table
|
||||
fooff CREATE TABLE `fooff` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table fooff;
|
||||
begin;
|
||||
select * from bar;
|
||||
|
@ -100,7 +100,7 @@ show create table foo;
|
|||
Table Create Table
|
||||
foo CREATE TABLE `foo` (
|
||||
`abra` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
select * from foo;
|
||||
abra
|
||||
drop table foo;
|
||||
|
|
|
@ -7,11 +7,11 @@ Table Create Table
|
|||
foo CREATE TABLE `foo` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table bar;
|
||||
Table Create Table
|
||||
bar CREATE TABLE `bar` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
KEY `a` (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
DROP TABLE foo,bar;
|
||||
|
|
|
@ -9,12 +9,12 @@ show create table foo;
|
|||
Table Create Table
|
||||
foo CREATE TABLE `foo` (
|
||||
`b` bigint(20) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table bar;
|
||||
Table Create Table
|
||||
bar CREATE TABLE `bar` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
DROP TABLE foo,bar;
|
||||
|
|
|
@ -10,11 +10,11 @@ foo CREATE TABLE `foo` (
|
|||
`a` int(11) NOT NULL DEFAULT '0',
|
||||
`b` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table bar;
|
||||
Table Create Table
|
||||
bar CREATE TABLE `bar` (
|
||||
`a` bigint(20) DEFAULT NULL,
|
||||
KEY `a` (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
DROP TABLE foo,bar;
|
||||
|
|
|
@ -38,7 +38,7 @@ CREATE TABLE `foo` (
|
|||
KEY `last_action` (`last_action`),
|
||||
KEY `last_login` (`last_login`),
|
||||
KEY `admin` (`admin`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=utf8;
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=utf8;
|
||||
|
||||
ALTER TABLE `foo` ADD `gender` TINYINT NULL AFTER `website` ,
|
||||
ADD `influence` INT NOT NULL DEFAULT '0' AFTER `gender` ,
|
||||
|
|
|
@ -1009,14 +1009,14 @@ s CREATE TABLE `s` (
|
|||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
explain select straight_join * from s,t where s.b = t.b;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE s ALL NULL NULL NULL NULL 1000
|
||||
|
@ -1030,7 +1030,7 @@ s CREATE TABLE `s` (
|
|||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL,
|
||||
CLUSTERING KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
|
@ -1038,7 +1038,7 @@ t CREATE TABLE `t` (
|
|||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL,
|
||||
CLUSTERING KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
explain select straight_join * from s,t where s.b = t.b;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE s index b b 5 NULL 1000
|
||||
|
|
|
@ -1009,14 +1009,14 @@ s CREATE TABLE `s` (
|
|||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
explain select straight_join * from s,t where s.b = t.b;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE s ALL NULL NULL NULL NULL 1000
|
||||
|
@ -1030,7 +1030,7 @@ s CREATE TABLE `s` (
|
|||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL,
|
||||
KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
|
@ -1038,7 +1038,7 @@ t CREATE TABLE `t` (
|
|||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL,
|
||||
KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
explain select straight_join * from s,t where s.b = t.b;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE s ALL b NULL NULL NULL 1000
|
||||
|
@ -1053,7 +1053,7 @@ s CREATE TABLE `s` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
KEY `b` (`b`),
|
||||
CLUSTERING KEY `b_2` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
|
@ -1062,7 +1062,7 @@ t CREATE TABLE `t` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
KEY `b` (`b`),
|
||||
CLUSTERING KEY `b_2` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
explain select straight_join * from s,t where s.b = t.b;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE s index b,b_2 b_2 5 NULL 1000
|
||||
|
@ -1076,7 +1076,7 @@ s CREATE TABLE `s` (
|
|||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL,
|
||||
CLUSTERING KEY `b_2` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
|
@ -1084,7 +1084,7 @@ t CREATE TABLE `t` (
|
|||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL,
|
||||
CLUSTERING KEY `b_2` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
explain select straight_join * from s,t where s.b = t.b;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE s index b_2 b_2 5 NULL 1000
|
||||
|
@ -1099,7 +1099,7 @@ s CREATE TABLE `s` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
CLUSTERING KEY `b_2` (`b`),
|
||||
KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
|
@ -1108,7 +1108,7 @@ t CREATE TABLE `t` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
CLUSTERING KEY `b_2` (`b`),
|
||||
KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
explain select straight_join * from s,t where s.b = t.b;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE s index b_2,b b_2 5 NULL 1000
|
||||
|
|
|
@ -1009,14 +1009,14 @@ s CREATE TABLE `s` (
|
|||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
explain select straight_join s.a,t.a from s,t where s.b = t.b;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE s ALL NULL NULL NULL NULL 1000
|
||||
|
@ -1030,7 +1030,7 @@ s CREATE TABLE `s` (
|
|||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL,
|
||||
KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
|
@ -1038,7 +1038,7 @@ t CREATE TABLE `t` (
|
|||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL,
|
||||
KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
explain select straight_join s.a,t.a from s,t where s.b = t.b;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE s ALL b NULL NULL NULL 1000
|
||||
|
@ -1053,7 +1053,7 @@ s CREATE TABLE `s` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
KEY `b` (`b`),
|
||||
KEY `b_2` (`b`,`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
|
@ -1062,7 +1062,7 @@ t CREATE TABLE `t` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
KEY `b` (`b`),
|
||||
KEY `b_2` (`b`,`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
explain select straight_join s.a,t.a from s,t where s.b = t.b;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE s index b,b_2 b_2 10 NULL 1000 Using index
|
||||
|
@ -1078,7 +1078,7 @@ s CREATE TABLE `s` (
|
|||
KEY `b` (`b`),
|
||||
KEY `b_2` (`b`,`a`),
|
||||
CLUSTERING KEY `b_3` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
|
@ -1088,7 +1088,7 @@ t CREATE TABLE `t` (
|
|||
KEY `b` (`b`),
|
||||
KEY `b_2` (`b`,`a`),
|
||||
CLUSTERING KEY `b_3` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
explain select straight_join s.a,t.a from s,t where s.b = t.b;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE s index b,b_2,b_3 b_2 10 NULL 1000 Using index
|
||||
|
@ -1103,7 +1103,7 @@ s CREATE TABLE `s` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
KEY `b` (`b`),
|
||||
CLUSTERING KEY `b_3` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
|
@ -1112,7 +1112,7 @@ t CREATE TABLE `t` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
KEY `b` (`b`),
|
||||
CLUSTERING KEY `b_3` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
explain select straight_join s.a,t.a from s,t where s.b = t.b;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE s index b,b_3 b_3 5 NULL 1000
|
||||
|
|
|
@ -1012,21 +1012,21 @@ s CREATE TABLE `s` (
|
|||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table u;
|
||||
Table Create Table
|
||||
u CREATE TABLE `u` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
explain select straight_join * from s,t,u where s.b = t.b and s.c = t.c;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE s ALL NULL NULL NULL NULL 1000
|
||||
|
@ -1042,7 +1042,7 @@ s CREATE TABLE `s` (
|
|||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL,
|
||||
KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
|
@ -1050,7 +1050,7 @@ t CREATE TABLE `t` (
|
|||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL,
|
||||
KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table u;
|
||||
Table Create Table
|
||||
u CREATE TABLE `u` (
|
||||
|
@ -1058,7 +1058,7 @@ u CREATE TABLE `u` (
|
|||
`b` int(11) DEFAULT NULL,
|
||||
`c` int(11) DEFAULT NULL,
|
||||
KEY `c` (`c`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
explain select straight_join * from s,t,u where s.b = t.b and s.c = u.c;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE s ALL b NULL NULL NULL 1000
|
||||
|
@ -1075,7 +1075,7 @@ s CREATE TABLE `s` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
KEY `b` (`b`),
|
||||
CLUSTERING KEY `b_2` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
|
@ -1084,7 +1084,7 @@ t CREATE TABLE `t` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
KEY `b` (`b`),
|
||||
CLUSTERING KEY `b_2` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table u;
|
||||
Table Create Table
|
||||
u CREATE TABLE `u` (
|
||||
|
@ -1093,7 +1093,7 @@ u CREATE TABLE `u` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
KEY `c` (`c`),
|
||||
CLUSTERING KEY `c_2` (`c`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
explain select straight_join * from s,t,u where s.b = t.b and s.c = u.c;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE s index b,b_2 b_2 5 NULL 1000
|
||||
|
|
|
@ -11,7 +11,7 @@ t1 CREATE TABLE `t1` (
|
|||
`d` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`),
|
||||
CLUSTERING KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
create clustering index foo on t1(c,d);
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
|
@ -23,7 +23,7 @@ t1 CREATE TABLE `t1` (
|
|||
PRIMARY KEY (`a`),
|
||||
CLUSTERING KEY `b` (`b`),
|
||||
CLUSTERING KEY `foo` (`c`,`d`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
alter table t1 drop primary key;
|
||||
alter table t1 add primary key (a,b,c,d);
|
||||
alter table t1 add clustering key bar(d,c,b,a);
|
||||
|
@ -38,7 +38,7 @@ t1 CREATE TABLE `t1` (
|
|||
CLUSTERING KEY `b` (`b`),
|
||||
CLUSTERING KEY `foo` (`c`,`d`),
|
||||
CLUSTERING KEY `bar` (`d`,`c`,`b`,`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into t1 value (1,1,1,1),(2,2,2,2),(3,3,3,3),(4,4,4,4),(32,54,12,56);
|
||||
explain select * from t1;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=TOKUDB;
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=TokuDB;
|
||||
SET AUTOCOMMIT=OFF;
|
||||
BEGIN;
|
||||
INSERT INTO t1 VALUES (1000);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=TOKUDB;
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=TokuDB;
|
||||
LOCK TABLES t1 WRITE;
|
||||
INSERT INTO t1 VALUES (1000);
|
||||
UNLOCK TABLES;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=TOKUDB;
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=TokuDB;
|
||||
LOCK TABLES t1 WRITE;
|
||||
INSERT INTO t1 VALUES (-1000);
|
||||
INSERT INTO t1 VALUES (1000);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
DROP TABLE IF EXISTS t1;
|
||||
--enable_warnings
|
||||
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=TOKUDB;
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=TokuDB;
|
||||
|
||||
connect (conn1,localhost,root,,);
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
DROP TABLE IF EXISTS t1;
|
||||
--enable_warnings
|
||||
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=TOKUDB;
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=TokuDB;
|
||||
|
||||
connect (conn1,localhost,root,,);
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
DROP TABLE IF EXISTS t1;
|
||||
--enable_warnings
|
||||
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=TOKUDB;
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=TokuDB;
|
||||
|
||||
connect (conn1,localhost,root,,);
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ show create table foo;
|
|||
Table Create Table
|
||||
foo CREATE TABLE `foo` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into foo values (1),(2),(3);
|
||||
begin;
|
||||
insert into foo values (4);
|
||||
|
|
|
@ -8,7 +8,7 @@ foo CREATE TABLE `foo` (
|
|||
`a` int(11) NOT NULL DEFAULT '0',
|
||||
`b` varchar(100) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
set session transaction isolation level repeatable read;
|
||||
begin;
|
||||
select * from foo;
|
||||
|
|
|
@ -6,7 +6,7 @@ show create table foo;
|
|||
Table Create Table
|
||||
foo CREATE TABLE `foo` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into foo values (1);
|
||||
begin;
|
||||
insert into foo values (2);
|
||||
|
|
|
@ -7,7 +7,7 @@ show create table foo;
|
|||
Table Create Table
|
||||
foo CREATE TABLE `foo` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into foo values (1);
|
||||
begin;
|
||||
select * from foo;
|
||||
|
|
|
@ -7,7 +7,7 @@ show create table foo;
|
|||
Table Create Table
|
||||
foo CREATE TABLE `foo` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
begin;
|
||||
select * from foo;
|
||||
a
|
||||
|
|
|
@ -7,7 +7,7 @@ show create table foo;
|
|||
Table Create Table
|
||||
foo CREATE TABLE `foo` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
begin;
|
||||
select * from foo;
|
||||
a
|
||||
|
|
|
@ -7,7 +7,7 @@ show create table foo;
|
|||
Table Create Table
|
||||
foo CREATE TABLE `foo` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
begin;
|
||||
select * from foo;
|
||||
a
|
||||
|
|
|
@ -7,7 +7,7 @@ show create table foo;
|
|||
Table Create Table
|
||||
foo CREATE TABLE `foo` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
begin;
|
||||
select * from foo;
|
||||
a
|
||||
|
|
|
@ -8,7 +8,7 @@ show create table foo;
|
|||
Table Create Table
|
||||
foo CREATE TABLE `foo` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
set session tokudb_load_save_space=0;
|
||||
set session transaction isolation level repeatable read;
|
||||
begin;
|
||||
|
|
|
@ -8,7 +8,7 @@ show create table foo;
|
|||
Table Create Table
|
||||
foo CREATE TABLE `foo` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
set session tokudb_load_save_space=1;
|
||||
set session transaction isolation level repeatable read;
|
||||
begin;
|
||||
|
|
|
@ -8,7 +8,7 @@ foo CREATE TABLE `foo` (
|
|||
`a` int(11) NOT NULL DEFAULT '0',
|
||||
`b` varchar(100) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
set session transaction isolation level repeatable read;
|
||||
begin;
|
||||
select * from foo;
|
||||
|
|
|
@ -8,7 +8,7 @@ foo CREATE TABLE `foo` (
|
|||
`a` int(11) NOT NULL DEFAULT '0',
|
||||
`b` varchar(100) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
set session transaction isolation level repeatable read;
|
||||
begin;
|
||||
select * from foo;
|
||||
|
|
|
@ -8,7 +8,7 @@ foo CREATE TABLE `foo` (
|
|||
`a` int(11) NOT NULL DEFAULT '0',
|
||||
`b` varchar(100) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
set session transaction isolation level repeatable read;
|
||||
begin;
|
||||
select * from foo;
|
||||
|
|
|
@ -10,14 +10,14 @@ foo CREATE TABLE `foo` (
|
|||
`a` int(11) NOT NULL DEFAULT '0',
|
||||
`b` varchar(100) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table bar;
|
||||
Table Create Table
|
||||
bar CREATE TABLE `bar` (
|
||||
`a` int(11) NOT NULL DEFAULT '0',
|
||||
`b` varchar(100) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
set session transaction isolation level repeatable read;
|
||||
begin;
|
||||
# should be empty
|
||||
|
|
|
@ -10,7 +10,7 @@ foo CREATE TABLE `foo` (
|
|||
`a` int(11) NOT NULL DEFAULT '0',
|
||||
`b` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into foo values (1,1);
|
||||
begin;
|
||||
select * from foo;
|
||||
|
|
|
@ -11,7 +11,7 @@ foo CREATE TABLE `foo` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`),
|
||||
KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into foo values (1,10,100),(2,20,200),(3,30,300),(4,40,400),(5,50,500),(6,60,600),(7,70,700),(8,80,800),(9,90,900);
|
||||
begin;
|
||||
select * from foo;
|
||||
|
|
|
@ -11,7 +11,7 @@ foo CREATE TABLE `foo` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`),
|
||||
KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into foo values (1,10,100),(2,20,200),(3,30,300),(4,40,400),(5,50,500),(6,60,600),(7,70,700),(8,80,800),(9,90,900);
|
||||
begin;
|
||||
select * from foo;
|
||||
|
|
|
@ -11,7 +11,7 @@ foo CREATE TABLE `foo` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`),
|
||||
KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into foo values (1,10,100),(2,20,200),(3,30,300),(4,40,400),(5,50,500),(6,60,600),(7,70,700),(8,80,800),(9,90,900);
|
||||
begin;
|
||||
select * from foo;
|
||||
|
|
|
@ -11,7 +11,7 @@ foo CREATE TABLE `foo` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`),
|
||||
KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into foo values (1,10,100),(2,20,200),(3,30,300),(4,40,400),(5,50,500),(6,60,600),(7,70,700),(8,80,800),(9,90,900);
|
||||
begin;
|
||||
select * from foo;
|
||||
|
|
|
@ -11,7 +11,7 @@ foo CREATE TABLE `foo` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`),
|
||||
KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into foo values (1,10,100),(2,20,200),(3,30,300),(4,40,400),(5,50,500),(6,60,600),(7,70,700),(8,80,800),(9,90,900);
|
||||
begin;
|
||||
select * from foo;
|
||||
|
|
|
@ -11,7 +11,7 @@ foo CREATE TABLE `foo` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`),
|
||||
KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
create table foo_isam (a int, b int, c int) engine=MyISAM;
|
||||
insert into foo values (1,10,100),(2,20,200),(3,30,300),(4,40,400),(5,50,500),(6,60,600),(7,70,700),(8,80,800),(9,90,900);
|
||||
begin;
|
||||
|
|
|
@ -7,7 +7,7 @@ show create table foo;
|
|||
Table Create Table
|
||||
foo CREATE TABLE `foo` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into foo values (1),(2),(3);
|
||||
set session transaction isolation level repeatable read;
|
||||
begin;
|
||||
|
|
|
@ -11,7 +11,7 @@ foo CREATE TABLE `foo` (
|
|||
`a` int(11) NOT NULL DEFAULT '0',
|
||||
`b` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
#should read (1,1)
|
||||
select * from foo;
|
||||
a b
|
||||
|
|
|
@ -7,7 +7,7 @@ show create table foo;
|
|||
Table Create Table
|
||||
foo CREATE TABLE `foo` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into foo values (1),(2),(3);
|
||||
set session transaction isolation level repeatable read;
|
||||
begin;
|
||||
|
|
|
@ -9,7 +9,7 @@ foo CREATE TABLE `foo` (
|
|||
`a` int(11) NOT NULL DEFAULT '0',
|
||||
`b` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into foo values (1,1);
|
||||
set session transaction isolation level repeatable read;
|
||||
begin;
|
||||
|
|
|
@ -10,7 +10,7 @@ foo CREATE TABLE `foo` (
|
|||
`b` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`),
|
||||
KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into foo values (100,100);
|
||||
begin;
|
||||
insert into foo values (1,100);
|
||||
|
|
|
@ -9,7 +9,7 @@ foo CREATE TABLE `foo` (
|
|||
`a` int(11) NOT NULL DEFAULT '0',
|
||||
`b` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into foo values (1,100);
|
||||
select * from foo;
|
||||
a b
|
||||
|
|
|
@ -11,7 +11,7 @@ foo CREATE TABLE `foo` (
|
|||
`c` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`),
|
||||
KEY `b` (`b`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into foo values (1,10,100),(2,20,200),(3,30,300),(4,40,400),(5,50,500);
|
||||
create table foo_isam (a int, b int, c int);
|
||||
# should use key b
|
||||
|
|
|
@ -8,7 +8,7 @@ foo CREATE TABLE `foo` (
|
|||
`a` int(11) NOT NULL DEFAULT '0',
|
||||
`b` varchar(100) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
set session transaction isolation level repeatable read;
|
||||
begin;
|
||||
select * from foo;
|
||||
|
|
|
@ -486,7 +486,7 @@ SHOW CREATE TABLE t1;
|
|||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`latin1_f` char(32) NOT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
SHOW FIELDS FROM t1;
|
||||
Field Type Null Key Default Extra
|
||||
latin1_f char(32) NO NULL
|
||||
|
@ -496,7 +496,7 @@ SHOW CREATE TABLE t1;
|
|||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`latin1_f` char(32) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
SHOW FIELDS FROM t1;
|
||||
Field Type Null Key Default Extra
|
||||
latin1_f char(32) YES NULL
|
||||
|
@ -505,7 +505,7 @@ SHOW CREATE TABLE t1;
|
|||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`latin1_f` char(32) COLLATE latin1_bin DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin
|
||||
SHOW FIELDS FROM t1;
|
||||
Field Type Null Key Default Extra
|
||||
latin1_f char(32) YES NULL
|
||||
|
|
|
@ -85,7 +85,7 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`name` varchar(10) DEFAULT NULL,
|
||||
`level` smallint(5) unsigned DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=cp1250
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=cp1250
|
||||
insert into t1 values ('string',1);
|
||||
select concat(name,space(level)), concat(name, repeat(' ',level)) from t1;
|
||||
concat(name,space(level)) concat(name, repeat(' ',level))
|
||||
|
@ -178,7 +178,7 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`name` varchar(10) COLLATE cp1250_czech_cs DEFAULT NULL,
|
||||
`level` smallint(5) unsigned DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=cp1250 COLLATE=cp1250_czech_cs
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=cp1250 COLLATE=cp1250_czech_cs
|
||||
insert into t1 values ('string',1);
|
||||
select concat(name,space(level)), concat(name, repeat(' ',level)) from t1;
|
||||
concat(name,space(level)) concat(name, repeat(' ',level))
|
||||
|
|
|
@ -25,7 +25,7 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`s1` varbinary(20) DEFAULT NULL,
|
||||
`s2` varbinary(20) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into t1 values (0x41,0x4100),(0x41,0x4120),(0x4100,0x4120);
|
||||
select hex(s1), hex(s2) from t1;
|
||||
hex(s1) hex(s2)
|
||||
|
|
|
@ -43,7 +43,7 @@ show create table t1;
|
|||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` bit(1) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 (a bit(64));
|
||||
insert into t1 values
|
||||
|
@ -498,7 +498,7 @@ show create table t2;
|
|||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` bit(7) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1, t2;
|
||||
create table t1 (id1 int(11), b1 bit(1));
|
||||
create table t2 (id2 int(11), b2 bit(1));
|
||||
|
@ -701,6 +701,6 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`a` bit(8) DEFAULT NULL,
|
||||
KEY `a` (`a`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
End of 5.1 tests
|
||||
|
|
|
@ -26,12 +26,12 @@ Table Create Table
|
|||
t3 CREATE TABLE `t3` (
|
||||
`a` mediumtext,
|
||||
`b` mediumblob
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create TABLE t4;
|
||||
Table Create Table
|
||||
t4 CREATE TABLE `t4` (
|
||||
`c` mediumtext CHARACTER SET utf8 NOT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1,t2,t3,t4;
|
||||
CREATE TABLE t1 (a char(257) default "hello");
|
||||
ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead
|
||||
|
@ -365,7 +365,7 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`a` text,
|
||||
KEY `a` (`a`(2100))
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (
|
||||
t1_id bigint(21) NOT NULL auto_increment,
|
||||
|
@ -672,7 +672,7 @@ t1 CREATE TABLE `t1` (
|
|||
`e` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`,`b`,`c`(255),`d`),
|
||||
KEY `a` (`a`,`b`,`d`,`e`)
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
CREATE table t1 (a blob);
|
||||
insert into t1 values ('b'),('a\0'),('a'),('a '),('aa'),(NULL);
|
||||
|
@ -751,7 +751,7 @@ show create table t1;
|
|||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` text
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into t1 values (default);
|
||||
select * from t1;
|
||||
a
|
||||
|
|
|
@ -207,7 +207,7 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`da` date DEFAULT '1962-03-03',
|
||||
`dt` datetime DEFAULT '1962-03-03 00:00:00'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into t1 values ();
|
||||
insert into t1 values ('2007-03-23 13:49:38','2007-03-23 13:49:38');
|
||||
Warnings:
|
||||
|
@ -574,7 +574,7 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`da` date DEFAULT '1962-03-03',
|
||||
`dt` datetime DEFAULT '1962-03-03 00:00:00'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into t1 values ();
|
||||
insert into t1 values ('2007-03-23 13:49:38','2007-03-23 13:49:38');
|
||||
Warnings:
|
||||
|
|
|
@ -712,14 +712,14 @@ show create table t1;
|
|||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`d` decimal(5,0) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 (d decimal);
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`d` decimal(10,0) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 (d decimal(66,0));
|
||||
ERROR 42000: Too big precision 66 specified for column 'd'. Maximum is 65.
|
||||
|
@ -880,7 +880,7 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`a` decimal(10,0) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
select round(a,b) as c from t1 order by c;
|
||||
c
|
||||
1000
|
||||
|
|
|
@ -1628,14 +1628,14 @@ show create table t1;
|
|||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` enum('','a','b') NOT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 (a enum (' ','a','b ') not null default 'b ');
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` enum('','a','b') NOT NULL DEFAULT 'b'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 (a enum ('0','1'));
|
||||
insert into t1 set a='foobar';
|
||||
|
@ -1660,7 +1660,7 @@ show create table t1;
|
|||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` enum('ä','1','2') NOT NULL DEFAULT 'ä'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
set names latin1;
|
||||
CREATE TABLE t1 (
|
||||
|
@ -1672,7 +1672,7 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT '1',
|
||||
`b` enum('value','öäü_value','ĘĂŐ') NOT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show columns from t1;
|
||||
Field Type Null Key Default Extra
|
||||
a int(11) YES 1
|
||||
|
@ -1701,7 +1701,7 @@ show create table t1;
|
|||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` enum('ä','ö','ü') CHARACTER SET utf8 DEFAULT 'ü'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into t1 values ('ä'), ('ö'), ('ü');
|
||||
select a from t1 order by a;
|
||||
a
|
||||
|
@ -1719,7 +1719,7 @@ show create table t1;
|
|||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` enum('ä','ö','ü') DEFAULT 'ü'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
select a from t1 order by a;
|
||||
a
|
||||
ä
|
||||
|
@ -1753,28 +1753,28 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`f1` int(11) DEFAULT NULL,
|
||||
`f2` enum('˙˙') DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1(russian enum('E','F','E˙F','F˙E') NOT NULL DEFAULT'E');
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`russian` enum('E','F','E˙F','F˙E') NOT NULL DEFAULT 'E'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1(denormal enum('E','F','E,F','F,E') NOT NULL DEFAULT'E');
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`denormal` enum('E','F','E,F','F,E') NOT NULL DEFAULT 'E'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1(russian_deviant enum('E','F','E˙F','F,E') NOT NULL DEFAULT'E');
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`russian_deviant` enum('E','F','E˙F','F,E') NOT NULL DEFAULT 'E'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (
|
||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||
|
|
|
@ -96,7 +96,7 @@ t2 CREATE TABLE `t2` (
|
|||
`col2` double(22,5) DEFAULT NULL,
|
||||
`col3` double DEFAULT NULL,
|
||||
`col4` double DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1,t2;
|
||||
create table t1 (a float);
|
||||
insert into t1 values (1);
|
||||
|
@ -239,7 +239,7 @@ show create table t3;
|
|||
Table Create Table
|
||||
t3 CREATE TABLE `t3` (
|
||||
`d` double DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1, t2, t3;
|
||||
create table t1 select 105213674794682365.00 + 0.0 x;
|
||||
show warnings;
|
||||
|
|
|
@ -5,47 +5,47 @@ show create table t1;
|
|||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`c` char(10) CHARACTER SET utf8 DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 (c national char(10));
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`c` char(10) CHARACTER SET utf8 DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 (c national varchar(10));
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`c` varchar(10) CHARACTER SET utf8 DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 (c nvarchar(10));
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`c` varchar(10) CHARACTER SET utf8 DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 (c nchar varchar(10));
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`c` varchar(10) CHARACTER SET utf8 DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 (c national character varying(10));
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`c` varchar(10) CHARACTER SET utf8 DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 (c nchar varying(10));
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`c` varchar(10) CHARACTER SET utf8 DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
|
|
|
@ -60,7 +60,7 @@ t1 CREATE TABLE `t1` (
|
|||
`if(0, NULL, 1.2)` decimal(2,1) DEFAULT NULL,
|
||||
`if(1, 0.22e1, 1.1)` double NOT NULL DEFAULT '0',
|
||||
`if(1E0, 1.1, 1.2)` decimal(2,1) NOT NULL DEFAULT '0.0'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 select nullif(1.1, 1.1), nullif(1.1, 1.2), nullif(1.1, 0.11e1), nullif(1.0, 1), nullif(1, 1.0), nullif(1, 1.1);
|
||||
select * from t1;
|
||||
|
@ -75,7 +75,7 @@ t1 CREATE TABLE `t1` (
|
|||
`nullif(1.0, 1)` decimal(2,1) DEFAULT NULL,
|
||||
`nullif(1, 1.0)` int(1) DEFAULT NULL,
|
||||
`nullif(1, 1.1)` int(1) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 (a decimal(4,2));
|
||||
insert into t1 value (10000), (1.1e10), ("11111"), (100000.1);
|
||||
|
@ -179,7 +179,7 @@ t1 CREATE TABLE `t1` (
|
|||
`truncate(-5678.123451,-3)` decimal(4,0) NOT NULL DEFAULT '0',
|
||||
`abs(-1.1)` decimal(3,1) NOT NULL DEFAULT '0.0',
|
||||
`-(-1.1)` decimal(2,1) NOT NULL DEFAULT '0.0'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
set session sql_mode='traditional';
|
||||
select 1e10/0e0;
|
||||
|
@ -773,7 +773,7 @@ show create table t1;
|
|||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`0.5` decimal(2,1) NOT NULL DEFAULT '0.0'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
select round(1.5),round(2.5);
|
||||
round(1.5) round(2.5)
|
||||
|
@ -936,14 +936,14 @@ show create table t1;
|
|||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`sl` decimal(5,5) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 (sl decimal(65, 30));
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`sl` decimal(65,30) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 (
|
||||
f1 decimal unsigned not null default 17.49,
|
||||
|
@ -976,7 +976,7 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`f0` decimal(30,30) unsigned zerofill NOT NULL DEFAULT '0.000000000000000000000000000000',
|
||||
`f1` decimal(10,0) unsigned zerofill NOT NULL DEFAULT '0000000000'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
drop procedure if exists wg2;
|
||||
create procedure wg2()
|
||||
|
@ -1026,7 +1026,7 @@ t1 CREATE TABLE `t1` (
|
|||
`my_double` double DEFAULT NULL,
|
||||
`my_varchar` varchar(50) DEFAULT NULL,
|
||||
`my_decimal` decimal(65,30) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
INSERT INTO t1 SET my_float = 1.175494345e-32,
|
||||
my_double = 1.175494345e-32,
|
||||
my_varchar = '1.175494345e-32';
|
||||
|
|
|
@ -5,14 +5,14 @@ show create table t1;
|
|||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` set('','a','b') NOT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 (a set (' ','a','b ') not null default 'b ');
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` set('','a','b') NOT NULL DEFAULT 'b'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
CREATE TABLE t1 ( user varchar(64) NOT NULL default '', path varchar(255) NOT NULL default '', privilege set('select','RESERVED30','RESERVED29','RESERVED28','RESERVED27','RESERVED26', 'RESERVED25','RESERVED24','data.delete','RESERVED22','RESERVED21', 'RESERVED20','data.insert.none','data.insert.approve', 'data.insert.delete','data.insert.move','data.insert.propose', 'data.insert.reject','RESERVED13','RESERVED12','RESERVED11','RESERVED10', 'RESERVED09','data.update','RESERVED07','RESERVED06','RESERVED05', 'RESERVED04','metadata.delete','metadata.put','RESERVED01','RESERVED00') NOT NULL default '', KEY user (user) ) ENGINE=MyISAM CHARSET=utf8;
|
||||
DROP TABLE t1;
|
||||
|
@ -22,7 +22,7 @@ show create table t1;
|
|||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`s` set('a','A') CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into t1 values ('a'),('a,A'),('A,a'),('A');
|
||||
select s from t1 order by s;
|
||||
s
|
||||
|
@ -84,5 +84,5 @@ show create table t1;
|
|||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`f1` set('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','53','54','55','56','57','58','59','60','61','62','63','64','1') DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
|
|
|
@ -199,7 +199,7 @@ t1 CREATE TABLE `t1` (
|
|||
`t1` timestamp NOT NULL DEFAULT '2003-01-01 00:00:00',
|
||||
`t2` datetime DEFAULT NULL,
|
||||
`t3` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show columns from t1;
|
||||
Field Type Null Key Default Extra
|
||||
t1 timestamp NO 2003-01-01 00:00:00
|
||||
|
@ -223,7 +223,7 @@ t1 CREATE TABLE `t1` (
|
|||
`t1` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`t2` datetime DEFAULT NULL,
|
||||
`t3` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show columns from t1;
|
||||
Field Type Null Key Default Extra
|
||||
t1 timestamp NO CURRENT_TIMESTAMP
|
||||
|
@ -249,7 +249,7 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`t1` timestamp NOT NULL DEFAULT '2003-01-01 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
|
||||
`t2` datetime DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show columns from t1;
|
||||
Field Type Null Key Default Extra
|
||||
t1 timestamp NO 2003-01-01 00:00:00 on update CURRENT_TIMESTAMP
|
||||
|
@ -274,7 +274,7 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`t1` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`t2` datetime DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show columns from t1;
|
||||
Field Type Null Key Default Extra
|
||||
t1 timestamp NO CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
|
||||
|
@ -300,7 +300,7 @@ t1 CREATE TABLE `t1` (
|
|||
`t1` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`t2` datetime DEFAULT NULL,
|
||||
`t3` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show columns from t1;
|
||||
Field Type Null Key Default Extra
|
||||
t1 timestamp NO CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
|
||||
|
@ -326,7 +326,7 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`t1` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`t2` datetime DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show columns from t1;
|
||||
Field Type Null Key Default Extra
|
||||
t1 timestamp NO CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
|
||||
|
@ -381,7 +381,7 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`a` timestamp NULL DEFAULT NULL,
|
||||
`b` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into t1 values (NULL, NULL);
|
||||
SET TIMESTAMP=1000000017;
|
||||
insert into t1 values ();
|
||||
|
@ -396,7 +396,7 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`a` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`b` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into t1 values (NULL, NULL);
|
||||
SET TIMESTAMP=1000000018;
|
||||
insert into t1 values ();
|
||||
|
@ -411,7 +411,7 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`a` timestamp NULL DEFAULT NULL,
|
||||
`b` timestamp NULL DEFAULT '2003-01-01 00:00:00'
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into t1 values (NULL, NULL);
|
||||
insert into t1 values (DEFAULT, DEFAULT);
|
||||
select * from t1;
|
||||
|
|
|
@ -11,7 +11,7 @@ t1 CREATE TABLE `t1` (
|
|||
`c` char(3) DEFAULT NULL,
|
||||
`e` enum('abc','def','ghi') DEFAULT NULL,
|
||||
`t` text
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
show create table vchar;
|
||||
Table Create Table
|
||||
vchar CREATE TABLE `vchar` (
|
||||
|
@ -19,7 +19,7 @@ vchar CREATE TABLE `vchar` (
|
|||
`c` char(3) DEFAULT NULL,
|
||||
`e` enum('abc','def','ghi') DEFAULT NULL,
|
||||
`t` text
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
insert into t1 values ('abc', 'de', 'ghi', 'jkl');
|
||||
insert into t1 values ('abc ', 'de ', 'ghi', 'jkl ');
|
||||
insert into t1 values ('abc ', 'd ', 'ghi', 'jkl ');
|
||||
|
@ -45,7 +45,7 @@ vchar CREATE TABLE `vchar` (
|
|||
`e` enum('abc','def','ghi') DEFAULT NULL,
|
||||
`t` text,
|
||||
`i` int(11) DEFAULT NULL
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
select length(v),length(c),length(e),length(t) from vchar;
|
||||
length(v) length(c) length(e) length(t)
|
||||
3 2 3 3
|
||||
|
@ -412,21 +412,21 @@ Table Create Table
|
|||
t1 CREATE TABLE `t1` (
|
||||
`f1` varchar(65500) DEFAULT NULL,
|
||||
KEY `index1` (`f1`(10))
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
alter table t1 modify f1 varchar(255);
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`f1` varchar(255) DEFAULT NULL,
|
||||
KEY `index1` (`f1`(10))
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
alter table t1 modify f1 tinytext;
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`f1` tinytext,
|
||||
KEY `index1` (`f1`(10))
|
||||
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
||||
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1(f1 VARCHAR(100) DEFAULT 'test');
|
||||
|
|
Loading…
Reference in a new issue