Commit d7fb3b77 authored by Alexey Kopytov's avatar Alexey Kopytov

Fixed test failures from the 'parts' suite introduced by

backporting WL#2934.
parent b2c706d8
...@@ -18,25 +18,25 @@ t1 CREATE TABLE `t1` ( ...@@ -18,25 +18,25 @@ t1 CREATE TABLE `t1` (
insert into t1 values (-3.402823466E+38), (3.402823466E+38), (-1.5), (-1), (0), (1), (1.5); insert into t1 values (-3.402823466E+38), (3.402823466E+38), (-1.5), (-1), (0), (1), (1.5);
select * from t1; select * from t1;
a a
-3.40282e+38 -3.40282e38
-1.5 -1.5
-1 -1
0 0
1 1
1.5 1.5
3.40282e+38 3.40282e38
select * from t1 where a=1.5; select * from t1 where a=1.5;
a a
1.5 1.5
delete from t1 where a=1.5; delete from t1 where a=1.5;
select * from t1; select * from t1;
a a
-3.40282e+38 -3.40282e38
-1.5 -1.5
-1 -1
0 0
1 1
3.40282e+38 3.40282e38
drop table t1; drop table t1;
create table t2 (a float not null, primary key(a)) engine='InnoDB' create table t2 (a float not null, primary key(a)) engine='InnoDB'
partition by key (a) partitions 10; partition by key (a) partitions 10;
...@@ -51,37 +51,37 @@ PARTITIONS 10 */ ...@@ -51,37 +51,37 @@ PARTITIONS 10 */
insert into t2 values (-3.402823466E+38), (-3.402823466E+37), (-123.456), (0), (1234546.789), (123.456), (1.5); insert into t2 values (-3.402823466E+38), (-3.402823466E+37), (-123.456), (0), (1234546.789), (123.456), (1.5);
select * from t2; select * from t2;
a a
-3.40282e+38 -3.40282e38
-3.40282e+37 -3.40282e37
-123.456 -123.456
0 0
1.5 1.5
123.456 123.456
1.23455e+06 1234550
select * from t2 where a=123.456; select * from t2 where a=123.456;
a a
delete from t2 where a=123.456; delete from t2 where a=123.456;
select * from t2; select * from t2;
a a
-3.40282e+38 -3.40282e38
-3.40282e+37 -3.40282e37
-123.456 -123.456
0 0
1.5 1.5
123.456 123.456
1.23455e+06 1234550
select * from t2 where a=1.5; select * from t2 where a=1.5;
a a
1.5 1.5
delete from t2 where a=1.5; delete from t2 where a=1.5;
select * from t2; select * from t2;
a a
-3.40282e+38 -3.40282e38
-3.40282e+37 -3.40282e37
-123.456 -123.456
0 0
123.456 123.456
1.23455e+06 1234550
delete from t2; delete from t2;
1024*3 inserts; 1024*3 inserts;
select count(*) from t2; select count(*) from t2;
...@@ -108,27 +108,27 @@ t1 CREATE TABLE `t1` ( ...@@ -108,27 +108,27 @@ t1 CREATE TABLE `t1` (
insert into t1 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208); insert into t1 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208);
select * from t1; select * from t1;
a a
-2.2250738585072e+208 -2.2250738585072016e208
-1.5 -1.5
-1 -1
-2.2250738585072e-208 -2.2250738585072014e-208
0 0
1.5 1.5
1234.567 1234.567
2.2250738585072e+208 2.2250738585072016e208
select * from t1 where a=1.5; select * from t1 where a=1.5;
a a
1.5 1.5
delete from t1 where a=1.5; delete from t1 where a=1.5;
select * from t1; select * from t1;
a a
-2.2250738585072e+208 -2.2250738585072016e208
-1.5 -1.5
-1 -1
-2.2250738585072e-208 -2.2250738585072014e-208
0 0
1234.567 1234.567
2.2250738585072e+208 2.2250738585072016e208
drop table t1; drop table t1;
create table t2 (a double not null, primary key(a)) engine='InnoDB' create table t2 (a double not null, primary key(a)) engine='InnoDB'
partition by key (a) partitions 10; partition by key (a) partitions 10;
...@@ -143,27 +143,27 @@ PARTITIONS 10 */ ...@@ -143,27 +143,27 @@ PARTITIONS 10 */
insert into t2 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208); insert into t2 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208);
select * from t2; select * from t2;
a a
-2.2250738585072e+208 -2.2250738585072016e208
-1.5 -1.5
-1 -1
-2.2250738585072e-208 -2.2250738585072014e-208
0 0
1.5 1.5
1234.567 1234.567
2.2250738585072e+208 2.2250738585072016e208
select * from t2 where a=1234.567; select * from t2 where a=1234.567;
a a
1234.567 1234.567
delete from t2 where a=1234.567; delete from t2 where a=1234.567;
select * from t2; select * from t2;
a a
-2.2250738585072e+208 -2.2250738585072016e208
-1.5 -1.5
-1 -1
-2.2250738585072e-208 -2.2250738585072014e-208
0 0
1.5 1.5
2.2250738585072e+208 2.2250738585072016e208
delete from t2; delete from t2;
1024*3 inserts; 1024*3 inserts;
select count(*) from t2; select count(*) from t2;
......
...@@ -18,25 +18,25 @@ t1 CREATE TABLE `t1` ( ...@@ -18,25 +18,25 @@ t1 CREATE TABLE `t1` (
insert into t1 values (-3.402823466E+38), (3.402823466E+38), (-1.5), (-1), (0), (1), (1.5); insert into t1 values (-3.402823466E+38), (3.402823466E+38), (-1.5), (-1), (0), (1), (1.5);
select * from t1; select * from t1;
a a
-3.40282e+38 -3.40282e38
-1.5 -1.5
-1 -1
0 0
1 1
1.5 1.5
3.40282e+38 3.40282e38
select * from t1 where a=1.5; select * from t1 where a=1.5;
a a
1.5 1.5
delete from t1 where a=1.5; delete from t1 where a=1.5;
select * from t1; select * from t1;
a a
-3.40282e+38 -3.40282e38
-1.5 -1.5
-1 -1
0 0
1 1
3.40282e+38 3.40282e38
drop table t1; drop table t1;
create table t2 (a float not null, primary key(a)) engine='MYISAM' create table t2 (a float not null, primary key(a)) engine='MYISAM'
partition by key (a) partitions 10; partition by key (a) partitions 10;
...@@ -51,37 +51,37 @@ PARTITIONS 10 */ ...@@ -51,37 +51,37 @@ PARTITIONS 10 */
insert into t2 values (-3.402823466E+38), (-3.402823466E+37), (-123.456), (0), (1234546.789), (123.456), (1.5); insert into t2 values (-3.402823466E+38), (-3.402823466E+37), (-123.456), (0), (1234546.789), (123.456), (1.5);
select * from t2; select * from t2;
a a
-3.40282e+38 -3.40282e38
-3.40282e+37 -3.40282e37
-123.456 -123.456
0 0
1.5 1.5
123.456 123.456
1.23455e+06 1234550
select * from t2 where a=123.456; select * from t2 where a=123.456;
a a
delete from t2 where a=123.456; delete from t2 where a=123.456;
select * from t2; select * from t2;
a a
-3.40282e+38 -3.40282e38
-3.40282e+37 -3.40282e37
-123.456 -123.456
0 0
1.5 1.5
123.456 123.456
1.23455e+06 1234550
select * from t2 where a=1.5; select * from t2 where a=1.5;
a a
1.5 1.5
delete from t2 where a=1.5; delete from t2 where a=1.5;
select * from t2; select * from t2;
a a
-3.40282e+38 -3.40282e38
-3.40282e+37 -3.40282e37
-123.456 -123.456
0 0
123.456 123.456
1.23455e+06 1234550
delete from t2; delete from t2;
16384*3 inserts; 16384*3 inserts;
select count(*) from t2; select count(*) from t2;
...@@ -108,27 +108,27 @@ t1 CREATE TABLE `t1` ( ...@@ -108,27 +108,27 @@ t1 CREATE TABLE `t1` (
insert into t1 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208); insert into t1 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208);
select * from t1; select * from t1;
a a
-2.2250738585072e+208 -2.2250738585072016e208
-1.5 -1.5
-1 -1
-2.2250738585072e-208 -2.2250738585072014e-208
0 0
1.5 1.5
1234.567 1234.567
2.2250738585072e+208 2.2250738585072016e208
select * from t1 where a=1.5; select * from t1 where a=1.5;
a a
1.5 1.5
delete from t1 where a=1.5; delete from t1 where a=1.5;
select * from t1; select * from t1;
a a
-2.2250738585072e+208 -2.2250738585072016e208
-1.5 -1.5
-1 -1
-2.2250738585072e-208 -2.2250738585072014e-208
0 0
1234.567 1234.567
2.2250738585072e+208 2.2250738585072016e208
drop table t1; drop table t1;
create table t2 (a double not null, primary key(a)) engine='MYISAM' create table t2 (a double not null, primary key(a)) engine='MYISAM'
partition by key (a) partitions 10; partition by key (a) partitions 10;
...@@ -143,27 +143,27 @@ PARTITIONS 10 */ ...@@ -143,27 +143,27 @@ PARTITIONS 10 */
insert into t2 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208); insert into t2 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208);
select * from t2; select * from t2;
a a
-2.2250738585072e+208 -2.2250738585072016e208
-1.5 -1.5
-1 -1
-2.2250738585072e-208 -2.2250738585072014e-208
0 0
1.5 1.5
1234.567 1234.567
2.2250738585072e+208 2.2250738585072016e208
select * from t2 where a=1234.567; select * from t2 where a=1234.567;
a a
1234.567 1234.567
delete from t2 where a=1234.567; delete from t2 where a=1234.567;
select * from t2; select * from t2;
a a
-2.2250738585072e+208 -2.2250738585072016e208
-1.5 -1.5
-1 -1
-2.2250738585072e-208 -2.2250738585072014e-208
0 0
1.5 1.5
2.2250738585072e+208 2.2250738585072016e208
delete from t2; delete from t2;
16384*3 inserts; 16384*3 inserts;
select count(*) from t2; select count(*) from t2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment