Commit aeff61ee authored by Alexey Botchkov's avatar Alexey Botchkov

MDEV-12064 Bug#18411494 WRONG COMPARSION ON BIG DECIMAL VALUES.

        Test results updated.
parent ea317557
...@@ -2956,7 +2956,7 @@ insert into t1 values (1,'x',5); ...@@ -2956,7 +2956,7 @@ insert into t1 values (1,'x',5);
select * from t1 natural join v1; select * from t1 natural join v1;
s1 s2 s3 s1 s2 s3
Warnings: Warnings:
Warning 1292 Truncated incorrect DOUBLE value: 'x' Warning 1292 Truncated incorrect DECIMAL value: 'x'
drop table t1; drop table t1;
drop view v1; drop view v1;
create table t1(a1 int); create table t1(a1 int);
......
...@@ -2967,7 +2967,7 @@ insert into t1 values (1,'x',5); ...@@ -2967,7 +2967,7 @@ insert into t1 values (1,'x',5);
select * from t1 natural join v1; select * from t1 natural join v1;
s1 s2 s3 s1 s2 s3
Warnings: Warnings:
Warning 1292 Truncated incorrect DOUBLE value: 'x' Warning 1292 Truncated incorrect DECIMAL value: 'x'
drop table t1; drop table t1;
drop view v1; drop view v1;
create table t1(a1 int); create table t1(a1 int);
......
...@@ -2956,7 +2956,7 @@ insert into t1 values (1,'x',5); ...@@ -2956,7 +2956,7 @@ insert into t1 values (1,'x',5);
select * from t1 natural join v1; select * from t1 natural join v1;
s1 s2 s3 s1 s2 s3
Warnings: Warnings:
Warning 1292 Truncated incorrect DOUBLE value: 'x' Warning 1292 Truncated incorrect DECIMAL value: 'x'
drop table t1; drop table t1;
drop view v1; drop view v1;
create table t1(a1 int); create table t1(a1 int);
......
...@@ -570,7 +570,7 @@ SELECT COUNT(*) FROM t1 WHERE d='1 '; ...@@ -570,7 +570,7 @@ SELECT COUNT(*) FROM t1 WHERE d='1 ';
COUNT(*) COUNT(*)
2 2
Warnings: Warnings:
Note 1292 Truncated incorrect DOUBLE value: '1 ' Note 1292 Truncated incorrect DECIMAL value: '1 '
SELECT COUNT(*) FROM t1 WHERE f4=''; SELECT COUNT(*) FROM t1 WHERE f4='';
COUNT(*) COUNT(*)
2 2
...@@ -605,7 +605,7 @@ SELECT COUNT(*) FROM t1 WHERE d=''; ...@@ -605,7 +605,7 @@ SELECT COUNT(*) FROM t1 WHERE d='';
COUNT(*) COUNT(*)
2 2
Warnings: Warnings:
Warning 1292 Truncated incorrect DOUBLE value: '' Warning 1292 Truncated incorrect DECIMAL value: ''
SELECT COUNT(*) FROM t1 WHERE f4='x'; SELECT COUNT(*) FROM t1 WHERE f4='x';
COUNT(*) COUNT(*)
2 2
...@@ -640,7 +640,7 @@ SELECT COUNT(*) FROM t1 WHERE d='x'; ...@@ -640,7 +640,7 @@ SELECT COUNT(*) FROM t1 WHERE d='x';
COUNT(*) COUNT(*)
2 2
Warnings: Warnings:
Warning 1292 Truncated incorrect DOUBLE value: 'x' Warning 1292 Truncated incorrect DECIMAL value: 'x'
SELECT COUNT(*) FROM t1 WHERE f4=' x'; SELECT COUNT(*) FROM t1 WHERE f4=' x';
COUNT(*) COUNT(*)
2 2
...@@ -675,7 +675,7 @@ SELECT COUNT(*) FROM t1 WHERE d=' x'; ...@@ -675,7 +675,7 @@ SELECT COUNT(*) FROM t1 WHERE d=' x';
COUNT(*) COUNT(*)
2 2
Warnings: Warnings:
Warning 1292 Truncated incorrect DOUBLE value: ' x' Warning 1292 Truncated incorrect DECIMAL value: ' x'
SELECT COUNT(*) FROM t1 WHERE f4='.'; SELECT COUNT(*) FROM t1 WHERE f4='.';
COUNT(*) COUNT(*)
2 2
...@@ -710,7 +710,7 @@ SELECT COUNT(*) FROM t1 WHERE d='.'; ...@@ -710,7 +710,7 @@ SELECT COUNT(*) FROM t1 WHERE d='.';
COUNT(*) COUNT(*)
2 2
Warnings: Warnings:
Warning 1292 Truncated incorrect DOUBLE value: '.' Warning 1292 Truncated incorrect DECIMAL value: '.'
SELECT COUNT(*) FROM t1 WHERE f4='-'; SELECT COUNT(*) FROM t1 WHERE f4='-';
COUNT(*) COUNT(*)
2 2
...@@ -745,7 +745,7 @@ SELECT COUNT(*) FROM t1 WHERE d='-'; ...@@ -745,7 +745,7 @@ SELECT COUNT(*) FROM t1 WHERE d='-';
COUNT(*) COUNT(*)
2 2
Warnings: Warnings:
Warning 1292 Truncated incorrect DOUBLE value: '-' Warning 1292 Truncated incorrect DECIMAL value: '-'
SELECT COUNT(*) FROM t1 WHERE f4='+'; SELECT COUNT(*) FROM t1 WHERE f4='+';
COUNT(*) COUNT(*)
2 2
...@@ -780,7 +780,7 @@ SELECT COUNT(*) FROM t1 WHERE d='+'; ...@@ -780,7 +780,7 @@ SELECT COUNT(*) FROM t1 WHERE d='+';
COUNT(*) COUNT(*)
2 2
Warnings: Warnings:
Warning 1292 Truncated incorrect DOUBLE value: '+' Warning 1292 Truncated incorrect DECIMAL value: '+'
SELECT COUNT(*) FROM t1 WHERE f4='1x'; SELECT COUNT(*) FROM t1 WHERE f4='1x';
COUNT(*) COUNT(*)
2 2
...@@ -815,7 +815,7 @@ SELECT COUNT(*) FROM t1 WHERE d='1x'; ...@@ -815,7 +815,7 @@ SELECT COUNT(*) FROM t1 WHERE d='1x';
COUNT(*) COUNT(*)
2 2
Warnings: Warnings:
Warning 1292 Truncated incorrect DOUBLE value: '1x' Warning 1292 Truncated incorrect DECIMAL value: '1x'
SELECT COUNT(*) FROM t1 WHERE f4='1e'; SELECT COUNT(*) FROM t1 WHERE f4='1e';
COUNT(*) COUNT(*)
2 2
...@@ -850,7 +850,7 @@ SELECT COUNT(*) FROM t1 WHERE d='1e'; ...@@ -850,7 +850,7 @@ SELECT COUNT(*) FROM t1 WHERE d='1e';
COUNT(*) COUNT(*)
2 2
Warnings: Warnings:
Warning 1292 Truncated incorrect DOUBLE value: '1e' Warning 1292 Truncated incorrect DECIMAL value: '1e'
SELECT COUNT(*) FROM t1 WHERE f4='1e+'; SELECT COUNT(*) FROM t1 WHERE f4='1e+';
COUNT(*) COUNT(*)
2 2
...@@ -885,7 +885,7 @@ SELECT COUNT(*) FROM t1 WHERE d='1e+'; ...@@ -885,7 +885,7 @@ SELECT COUNT(*) FROM t1 WHERE d='1e+';
COUNT(*) COUNT(*)
2 2
Warnings: Warnings:
Warning 1292 Truncated incorrect DOUBLE value: '1e+' Warning 1292 Truncated incorrect DECIMAL value: '1e+'
SELECT COUNT(*) FROM t1 WHERE f4='1E-'; SELECT COUNT(*) FROM t1 WHERE f4='1E-';
COUNT(*) COUNT(*)
2 2
...@@ -920,7 +920,7 @@ SELECT COUNT(*) FROM t1 WHERE d='1E-'; ...@@ -920,7 +920,7 @@ SELECT COUNT(*) FROM t1 WHERE d='1E-';
COUNT(*) COUNT(*)
2 2
Warnings: Warnings:
Warning 1292 Truncated incorrect DOUBLE value: '1E-' Warning 1292 Truncated incorrect DECIMAL value: '1E-'
SELECT COUNT(*) FROM t1 WHERE f4='1Ex'; SELECT COUNT(*) FROM t1 WHERE f4='1Ex';
COUNT(*) COUNT(*)
2 2
...@@ -955,7 +955,7 @@ SELECT COUNT(*) FROM t1 WHERE d='1Ex'; ...@@ -955,7 +955,7 @@ SELECT COUNT(*) FROM t1 WHERE d='1Ex';
COUNT(*) COUNT(*)
2 2
Warnings: Warnings:
Warning 1292 Truncated incorrect DOUBLE value: '1Ex' Warning 1292 Truncated incorrect DECIMAL value: '1Ex'
SELECT COUNT(*) FROM t1 WHERE f4='1e+x'; SELECT COUNT(*) FROM t1 WHERE f4='1e+x';
COUNT(*) COUNT(*)
2 2
...@@ -990,7 +990,7 @@ SELECT COUNT(*) FROM t1 WHERE d='1e+x'; ...@@ -990,7 +990,7 @@ SELECT COUNT(*) FROM t1 WHERE d='1e+x';
COUNT(*) COUNT(*)
2 2
Warnings: Warnings:
Warning 1292 Truncated incorrect DOUBLE value: '1e+x' Warning 1292 Truncated incorrect DECIMAL value: '1e+x'
SELECT COUNT(*) FROM t1 WHERE f4='1e1000'; SELECT COUNT(*) FROM t1 WHERE f4='1e1000';
COUNT(*) COUNT(*)
0 0
...@@ -1025,7 +1025,8 @@ SELECT COUNT(*) FROM t1 WHERE d='1e1000'; ...@@ -1025,7 +1025,8 @@ SELECT COUNT(*) FROM t1 WHERE d='1e1000';
COUNT(*) COUNT(*)
0 0
Warnings: Warnings:
Warning 1292 Truncated incorrect DOUBLE value: '1e1000' Warning 1916 Got overflow when converting '' to DECIMAL. Value truncated.
Warning 1292 Truncated incorrect DECIMAL value: '1e1000'
ALTER TABLE t1 ALTER TABLE t1
ADD KEY f4(f4), ADD KEY f4(f4),
ADD KEY f8(f8), ADD KEY f8(f8),
......
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