mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / suite / parts / r / partition_float_myisam.result
blob3f9390f6ba93fe788fe546b7d1311db09954c1a1
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
13 /*!50100 PARTITION BY KEY (a)
14 (PARTITION pa1 MAX_ROWS = 20 MIN_ROWS = 2 ENGINE = MyISAM,
15  PARTITION pa2 MAX_ROWS = 30 MIN_ROWS = 3 ENGINE = MyISAM,
16  PARTITION pa3 MAX_ROWS = 30 MIN_ROWS = 4 ENGINE = MyISAM,
17  PARTITION pa4 MAX_ROWS = 40 MIN_ROWS = 2 ENGINE = MyISAM) */
18 insert into t1 values (-3.402823466E+38), (3.402823466E+38), (-1.5), (-1), (0), (1), (1.5);
19 select * from t1;
21 -3.40282e+38
22 -1.5
26 1.5
27 3.40282e+38
28 select * from t1 where a=1.5;
30 1.5
31 delete from t1 where a=1.5;
32 select * from t1;
34 -3.40282e+38
35 -1.5
39 3.40282e+38
40 drop table t1;
41 create table t2 (a float not null, primary key(a)) engine='MYISAM' 
42 partition by key (a) partitions 10;
43 show create table t2;
44 Table   Create Table
45 t2      CREATE TABLE `t2` (
46   `a` float NOT NULL,
47   PRIMARY KEY (`a`)
48 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
49 /*!50100 PARTITION BY KEY (a)
50 PARTITIONS 10 */
51 insert into t2 values (-3.402823466E+38), (-3.402823466E+37), (-123.456), (0), (1234546.789), (123.456), (1.5);
52 select * from t2;
54 -3.40282e+38
55 -3.40282e+37
56 -123.456
58 1.5
59 123.456
60 1.23455e+06
61 select * from t2 where a=123.456;
63 delete from t2 where a=123.456;
64 select * from t2;
66 -3.40282e+38
67 -3.40282e+37
68 -123.456
70 1.5
71 123.456
72 1.23455e+06
73 select * from t2 where a=1.5;
75 1.5
76 delete from t2 where a=1.5;
77 select * from t2;
79 -3.40282e+38
80 -3.40282e+37
81 -123.456
83 123.456
84 1.23455e+06
85 delete from t2;
86 16384*3 inserts;
87 select count(*) from t2;
88 count(*)
89 49152
90 drop table t2;
91 create table t1 (a double not null, primary key(a)) engine='MYISAM' 
92 partition by key (a) (
93 partition pa1 max_rows=20 min_rows=2,
94 partition pa2 max_rows=30 min_rows=3,
95 partition pa3 max_rows=30 min_rows=4,
96 partition pa4 max_rows=40 min_rows=2);
97 show create table t1;
98 Table   Create Table
99 t1      CREATE TABLE `t1` (
100   `a` double NOT NULL,
101   PRIMARY KEY (`a`)
102 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
103 /*!50100 PARTITION BY KEY (a)
104 (PARTITION pa1 MAX_ROWS = 20 MIN_ROWS = 2 ENGINE = MyISAM,
105  PARTITION pa2 MAX_ROWS = 30 MIN_ROWS = 3 ENGINE = MyISAM,
106  PARTITION pa3 MAX_ROWS = 30 MIN_ROWS = 4 ENGINE = MyISAM,
107  PARTITION pa4 MAX_ROWS = 40 MIN_ROWS = 2 ENGINE = MyISAM) */
108 insert into t1 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208);
109 select * from t1;
111 -2.2250738585072e+208
112 -1.5
114 -2.2250738585072e-208
117 1234.567
118 2.2250738585072e+208
119 select * from t1 where a=1.5;
122 delete from t1 where a=1.5;
123 select * from t1;
125 -2.2250738585072e+208
126 -1.5
128 -2.2250738585072e-208
130 1234.567
131 2.2250738585072e+208
132 drop table t1;
133 create table t2 (a double not null, primary key(a)) engine='MYISAM' 
134 partition by key (a) partitions 10;
135 show create table t2;
136 Table   Create Table
137 t2      CREATE TABLE `t2` (
138   `a` double NOT NULL,
139   PRIMARY KEY (`a`)
140 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
141 /*!50100 PARTITION BY KEY (a)
142 PARTITIONS 10 */
143 insert into t2 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208);
144 select * from t2;
146 -2.2250738585072e+208
147 -1.5
149 -2.2250738585072e-208
152 1234.567
153 2.2250738585072e+208
154 select * from t2 where a=1234.567;
156 1234.567
157 delete from t2 where a=1234.567;
158 select * from t2;
160 -2.2250738585072e+208
161 -1.5
163 -2.2250738585072e-208
166 2.2250738585072e+208
167 delete from t2;
168 16384*3 inserts;
169 select count(*) from t2;
170 count(*)
171 49152
172 drop table t2;