~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: brian
  • Date: 2008-06-29 12:50:19 UTC
  • mfrom: (12.1.4 drizzle)
  • Revision ID: brian@localhost.localdomain-20080629125019-qxk9qma8esphwwus
Committing merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
eval create table t1 (a bigint unsigned not null, primary key(a)) engine=$engine 
2
 
partition by key (a) (
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 (18446744073709551615), (0xFFFFFFFFFFFFFFFE), (18446744073709551613), (18446744073709551612), (1), (2), (65535);
9
 
select * from t1;
10
 
select * from t1 where a=-2;
11
 
delete from t1 where a=-2;
12
 
select * from t1;
13
 
select * from t1 where a=18446744073709551615;
14
 
delete from t1 where a=18446744073709551615;
15
 
select * from t1;
16
 
drop table t1;
17
 
 
18
 
eval create table t2 (a bigint unsigned not null, primary key(a)) engine=$engine 
19
 
partition by key (a) partitions 10;
20
 
show create table t2;
21
 
insert into t2 values (18446744073709551615), (0xFFFFFFFFFFFFFFFE), (18446744073709551613), (18446744073709551612);
22
 
select * from t2;
23
 
select * from t2 where a=18446744073709551615;
24
 
delete from t2 where a=18446744073709551615;
25
 
select * from t2;
26
 
delete from t2;
27
 
let $count=$maxrows;
28
 
--echo $maxrows inserts;
29
 
--disable_query_log
30
 
while ($count)
31
 
{
32
 
eval insert into t2 values ($count);
33
 
dec $count;
34
 
}
35
 
--enable_query_log
36
 
select count(*) from t2;
37
 
drop table t2;
38
 
 
39
 
eval create table t3 (a bigint not null, primary key(a)) engine=$engine 
40
 
partition by key (a) partitions 10;
41
 
show create table t3;
42
 
insert into t3 values (9223372036854775807), (9223372036854775806), (9223372036854775805), (9223372036854775804), (-9223372036854775808), (-9223372036854775807), (1), (-1), (0);
43
 
select * from t3;
44
 
select * from t3 where a=9223372036854775806;
45
 
delete from t3 where a=9223372036854775806;
46
 
select * from t3;
47
 
drop table t3;