~skinny.moey/drizzle/branch-rev

« back to all changes in this revision

Viewing changes to mysql-test/suite/parts/r/partition_float_myisam.result

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
create table t1 (a float not null, primary key(a)) engine='MYISAM' 
 
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
Table   Create Table
 
9
t1      CREATE TABLE `t1` (
 
10
  `a` float NOT NULL,
 
11
  PRIMARY KEY (`a`)
 
12
) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION pa1 MAX_ROWS = 20 MIN_ROWS = 2 ENGINE = MyISAM, PARTITION pa2 MAX_ROWS = 30 MIN_ROWS = 3 ENGINE = MyISAM, PARTITION pa3 MAX_ROWS = 30 MIN_ROWS = 4 ENGINE = MyISAM, PARTITION pa4 MAX_ROWS = 40 MIN_ROWS = 2 ENGINE = MyISAM) */
 
13
insert into t1 values (-3.402823466E+38), (3.402823466E+38), (-1.5), (-1), (0), (1), (1.5);
 
14
select * from t1;
 
15
a
 
16
-3.40282e38
 
17
-1.5
 
18
-1
 
19
0
 
20
1
 
21
1.5
 
22
3.40282e38
 
23
select * from t1 where a=1.5;
 
24
a
 
25
1.5
 
26
delete from t1 where a=1.5;
 
27
select * from t1;
 
28
a
 
29
-3.40282e38
 
30
-1.5
 
31
-1
 
32
0
 
33
1
 
34
3.40282e38
 
35
drop table t1;
 
36
create table t2 (a float not null, primary key(a)) engine='MYISAM' 
 
37
partition by key (a) partitions 10;
 
38
show create table t2;
 
39
Table   Create Table
 
40
t2      CREATE TABLE `t2` (
 
41
  `a` float NOT NULL,
 
42
  PRIMARY KEY (`a`)
 
43
) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) PARTITIONS 10  */
 
44
insert into t2 values (-3.402823466E+38), (-3.402823466E+37), (-123.456), (0), (1234546.789), (123.456), (1.5);
 
45
select * from t2;
 
46
a
 
47
-3.40282e38
 
48
-3.40282e37
 
49
-123.456
 
50
0
 
51
1.5
 
52
123.456
 
53
1234550
 
54
select * from t2 where a=123.456;
 
55
a
 
56
delete from t2 where a=123.456;
 
57
select * from t2;
 
58
a
 
59
-3.40282e38
 
60
-3.40282e37
 
61
-123.456
 
62
0
 
63
1.5
 
64
123.456
 
65
1234550
 
66
select * from t2 where a=1.5;
 
67
a
 
68
1.5
 
69
delete from t2 where a=1.5;
 
70
select * from t2;
 
71
a
 
72
-3.40282e38
 
73
-3.40282e37
 
74
-123.456
 
75
0
 
76
123.456
 
77
1234550
 
78
delete from t2;
 
79
16384*3 inserts;
 
80
select count(*) from t2;
 
81
count(*)
 
82
49152
 
83
drop table t2;
 
84
create table t1 (a double not null, primary key(a)) engine='MYISAM' 
 
85
partition by key (a) (
 
86
partition pa1 max_rows=20 min_rows=2,
 
87
partition pa2 max_rows=30 min_rows=3,
 
88
partition pa3 max_rows=30 min_rows=4,
 
89
partition pa4 max_rows=40 min_rows=2);
 
90
show create table t1;
 
91
Table   Create Table
 
92
t1      CREATE TABLE `t1` (
 
93
  `a` double NOT NULL,
 
94
  PRIMARY KEY (`a`)
 
95
) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION pa1 MAX_ROWS = 20 MIN_ROWS = 2 ENGINE = MyISAM, PARTITION pa2 MAX_ROWS = 30 MIN_ROWS = 3 ENGINE = MyISAM, PARTITION pa3 MAX_ROWS = 30 MIN_ROWS = 4 ENGINE = MyISAM, PARTITION pa4 MAX_ROWS = 40 MIN_ROWS = 2 ENGINE = MyISAM) */
 
96
insert into t1 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208);
 
97
select * from t1;
 
98
a
 
99
-2.2250738585072016e208
 
100
-1.5
 
101
-1
 
102
-2.2250738585072014e-208
 
103
0
 
104
1.5
 
105
1234.567
 
106
2.2250738585072016e208
 
107
select * from t1 where a=1.5;
 
108
a
 
109
1.5
 
110
delete from t1 where a=1.5;
 
111
select * from t1;
 
112
a
 
113
-2.2250738585072016e208
 
114
-1.5
 
115
-1
 
116
-2.2250738585072014e-208
 
117
0
 
118
1234.567
 
119
2.2250738585072016e208
 
120
drop table t1;
 
121
create table t2 (a double not null, primary key(a)) engine='MYISAM' 
 
122
partition by key (a) partitions 10;
 
123
show create table t2;
 
124
Table   Create Table
 
125
t2      CREATE TABLE `t2` (
 
126
  `a` double NOT NULL,
 
127
  PRIMARY KEY (`a`)
 
128
) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) PARTITIONS 10  */
 
129
insert into t2 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208);
 
130
select * from t2;
 
131
a
 
132
-2.2250738585072016e208
 
133
-1.5
 
134
-1
 
135
-2.2250738585072014e-208
 
136
0
 
137
1.5
 
138
1234.567
 
139
2.2250738585072016e208
 
140
select * from t2 where a=1234.567;
 
141
a
 
142
1234.567
 
143
delete from t2 where a=1234.567;
 
144
select * from t2;
 
145
a
 
146
-2.2250738585072016e208
 
147
-1.5
 
148
-1
 
149
-2.2250738585072014e-208
 
150
0
 
151
1.5
 
152
2.2250738585072016e208
 
153
delete from t2;
 
154
16384*3 inserts;
 
155
select count(*) from t2;
 
156
count(*)
 
157
49152
 
158
drop table t2;