1 --error ER_TOO_MANY_PARTITION_FUNC_FIELDS_ERROR
2 eval create
table t1 (a date not null, b varchar(50) not null, c varchar(50) not null, d
enum(
'm',
'w') not null, e
int not null, f decimal (18,2) not null, g bigint not null, h tinyint not null, a1 date not null, b1 varchar(50) not null, c1 varchar(50) not null, d1
enum(
'm',
'w') not null, e1
int not null, f1 decimal (18,2) not null, g1 bigint not null, h1 tinyint not null, a2 date not null, b2 varchar(50) not null, c2 varchar(50) not null, d2
enum(
'm',
'w') not null, e2
int not null, f2 decimal (18,2) not null, g2 bigint not null, h2 tinyint not null, a3 date not null, b3 varchar(50) not null, c3 varchar(50) not null, d3
enum(
'm',
'w') not null, e3
int not null, f3 decimal (18,2) not null, g3 bigint not null, h3 tinyint not null,
i char(255), primary key(a,b,c,d,e,f,g,h,a1,b1,c1,d1,e1,f1,g1,h1,a2,b2,c2,d2,e2,f2,g2,h2,a3,b3,c3,d3,e3,f3,g3,h3)) engine=$engine
3 partition by key(a,b,c,d,e,f,g,h,a1,b1,c1,d1,e1,f1,g1,h1,a2,b2,c2,d2,e2,f2,g2,h2,a3,b3,c3,d3,e3,f3,g3,h3) (
4 partition pa1 max_rows=20 min_rows=2,
5 partition pa2 max_rows=30 min_rows=3,
6 partition pa3 max_rows=30 min_rows=4,
7 partition pa4 max_rows=40 min_rows=2);
9 eval create
table t1 (a date not null, b varchar(50) not null, c varchar(50) not null, d enum('m', 'w') not null, e
int not null, f decimal (18,2) not null, g bigint not null, h tinyint not null, a1 date not null, b1 varchar(50) not null, c1 varchar(50) not null, d1 enum('m', 'w') not null, e1
int not null, f1 decimal (18,2) not null, g1 bigint not null, h1 tinyint not null, a2 date not null, b2 varchar(50) not null, c2 varchar(50) not null, d2 enum('m', 'w') not null, e2
int not null, f2 decimal (18,2) not null, g2 bigint not null, h2 tinyint not null, a3 date not null, b3 varchar(50) not null, c3 varchar(50) not null, d3 enum('m', 'w') not null, e3
int not null, f3 decimal (18,2) not null, g3 bigint not null, h3 tinyint not null,
i char(255), primary key(a,b,c,d,e,f,g,h,a1,b1,c1,d1,e1,f1,g1,h1)) engine=$engine
10 partition by key(a,b,c,d,e,f,g,h) (
11 partition pa1 max_rows=20 min_rows=2,
12 partition pa2 max_rows=30 min_rows=3,
13 partition pa3 max_rows=30 min_rows=4,
14 partition pa4 max_rows=40 min_rows=2);
16 #--disable_abort_on error
19 (
'1975-01-01',
'abcde',
'abcde',
'm', 1234, 123.45, 32412341234, 113,
'1975-01-01',
'abcde',
'abcde',
'm', 1234, 123.45, 32412341234, 113,
'1975-01-01',
'abcde',
'abcde',
'm', 1234, 123.45, 32412341234, 113,
'1975-01-01',
'abcde',
'abcde',
'm', 1234, 123.45, 32412341234, 113,
'tbhth nrzh ztfghgfh fzh ftzhj fztjh'),
20 (
'1983-12-31',
'cdef',
'srtbvsr',
'w', 45634, 13452.56, 3452346456, 127,
'1983-12-31',
'cdef',
'srtbvsr',
'w', 45634, 13452.56, 3452346456, 127,
'1983-12-31',
'cdef',
'srtbvsr',
'w', 45634, 13452.56, 3452346456, 127,
'1983-12-31',
'cdef',
'srtbvsr',
'w', 45634, 13452.56, 3452346456, 127,
'liuugbzvdmrlti b itiortudirtfgtibm dfi'),
21 (
'1980-10-14',
'fgbbd',
'dtzndtz',
'w', 67856, 5463354.67, 3567845333, 124,
'1980-10-14',
'fgbbd',
'dtzndtz',
'w', 67856, 5463354.67, 3567845333, 124,
'1980-10-14',
'fgbbd',
'dtzndtz',
'w', 67856, 5463354.67, 3567845333, 124,
'1980-10-14',
'fgbbd',
'dtzndtz',
'w', 67856, 5463354.67, 3567845333, 124,
'd,f söierugsig msireg siug ei5ggth lrutluitgzeöjrtnb.rkjthuekuhzrkuthgjdnffjmbr'),
22 (
'2000-06-15',
'jukg',
'zikhuk',
'm', 45675, 6465754.13, 435242623462, 18,
'2000-06-15',
'jukg',
'zikhuk',
'm', 45675, 6465754.13, 435242623462, 18,
'2000-06-15',
'jukg',
'zikhuk',
'm', 45675, 6465754.13, 435242623462, 18,
'2000-06-15',
'jukg',
'zikhuk',
'm', 45675, 6465754.13, 435242623462, 18,
'pib mdotkbm.m');
25 select * from t1 where a<19851231;
27 --enable_abort_on_error