~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/parts/inc/partition_key_4col.inc

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
eval create table t1 (a date not null, b varchar(50) not null, c varchar(50) not null, d enum('m', 'w'), primary key(a,b,c,d)) engine=$engine 
 
2
partition by key (a,b,c,d) (
 
3
partition pa1 max_rows=20 min_rows=2,
 
4
partition pa2 max_rows=30 min_rows=3,
 
5
partition pa3 max_rows=30 min_rows=4,
 
6
partition pa4 max_rows=40 min_rows=2);
 
7
show create table t1;
 
8
insert into t1 values 
 
9
('1975-01-01', 'abcde', 'abcde','m'), 
 
10
('1983-12-31', 'cdef', 'srtbvsr', 'w'), 
 
11
('1980-10-14', 'fgbbd', 'dtzndtz', 'w'),
 
12
('2000-06-15', 'jukg','zikhuk','m');
 
13
select * from t1;
 
14
select * from t1 where a<19851231;
 
15
drop table t1;
 
16