Skip to content

Commit 2e5450a

Browse files
committed
Merge branch '10.1' into 10.2
2 parents 17cf27f + d6302c9 commit 2e5450a

16 files changed

+110
-34
lines changed
File renamed without changes.

mysql-test/r/func_group.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,13 +1186,13 @@ i count(*) std(e1/e2)
11861186
3 4 0.00000000
11871187
select std(s1/s2) from bug22555;
11881188
std(s1/s2)
1189-
0.21328517
1189+
0.21325764
11901190
select std(o1/o2) from bug22555;
11911191
std(o1/o2)
11921192
0.2132576358664934
11931193
select std(e1/e2) from bug22555;
11941194
std(e1/e2)
1195-
0.21328517
1195+
0.21325764
11961196
set @saved_div_precision_increment=@@div_precision_increment;
11971197
set div_precision_increment=19;
11981198
select i, count(*), std(s1/s2) from bug22555 group by i order by i;
File renamed without changes.
File renamed without changes.

mysql-test/r/precedence.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5920,14 +5920,14 @@ view_definition
59205920
select 2 / 3 * 3 AS `2 / 3 * 3`,2 / (3 * 3) AS `2 / (3 * 3)`,2 / 3 * 3 AS `(2 / 3) * 3`
59215921
select 2 / 3 * 3, 2 / (3 * 3), (2 / 3) * 3 union select * from v1;
59225922
2 / 3 * 3 2 / (3 * 3) (2 / 3) * 3
5923-
2.00010.2222 2.0001
5923+
2.00000.2222 2.0000
59245924
create or replace view v1 as select 2 / 3 / 3, 2 / (3 / 3), (2 / 3) / 3;
59255925
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
59265926
view_definition
59275927
select 2 / 3 / 3 AS `2 / 3 / 3`,2 / (3 / 3) AS `2 / (3 / 3)`,2 / 3 / 3 AS `(2 / 3) / 3`
59285928
select 2 / 3 / 3, 2 / (3 / 3), (2 / 3) / 3 union select * from v1;
59295929
2 / 3 / 3 2 / (3 / 3) (2 / 3) / 3
5930-
0.222233332.0000 0.22223333
5930+
0.222222222.0000 0.22222222
59315931
create or replace view v1 as select 2 / 3 DIV 3, 2 / (3 DIV 3), (2 / 3) DIV 3;
59325932
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
59335933
view_definition

mysql-test/r/subselect4.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2596,7 +2596,7 @@ SELECT
25962596
population, area, population/area,
25972597
cast(population/area as DECIMAL(20,9)) FROM t1 LIMIT 1;
25982598
population area population/area cast(population/area as DECIMAL(20,9))
2599-
11797 91 129.6374 129.637400000
2599+
11797 91 129.6374 129.637362637
26002600
SELECT * FROM t1 A
26012601
WHERE population/area = (SELECT MAX(population/area) from t1 B where A.region = B.region);
26022602
region area population

mysql-test/r/type_newdecimal.result

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,8 +1532,11 @@ select (1.20396873 * 0.89550000 * 0.68000000 * 1.08721696 * 0.99500000 *
15321532
1.01500000 * 1.01500000 * 0.99500000)
15331533
0.81298807395367312459230693948000000000
15341534
create table t1 as select 5.05 / 0.014;
1535+
Warnings:
1536+
Note 1265 Data truncated for column '5.05 / 0.014' at row 1
15351537
show warnings;
15361538
Level Code Message
1539+
Note 1265 Data truncated for column '5.05 / 0.014' at row 1
15371540
show create table t1;
15381541
Table Create Table
15391542
t1 CREATE TABLE `t1` (
@@ -1648,6 +1651,8 @@ my_col
16481651
0.12345678912345678912345678912345678912
16491652
DROP TABLE t1;
16501653
CREATE TABLE t1 SELECT 1 / .123456789123456789123456789123456789123456789123456789123456789123456789123456789 AS my_col;
1654+
Warnings:
1655+
Note 1265 Data truncated for column 'my_col' at row 1
16511656
DESCRIBE t1;
16521657
Field Type Null Key Default Extra
16531658
my_col decimal(65,4) YES NULL

mysql-test/r/type_ranges.result

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ DROP INDEX test ON t1;
9191
insert into t1 values (10, 1,1,1,1,1,1,1,1,1,1,1,1,1,NULL,0,0,0,1,1,1,1,'one','one');
9292
insert into t1 values (NULL,2,2,2,2,2,2,2,2,2,2,2,2,2,NULL,NULL,NULL,NULL,NULL,NULL,2,2,'two','two,one');
9393
insert ignore into t1 values (0,1/3,3,3,3,3,3,3,3,3,3,3,3,3,NULL,'19970303','10:10:10','19970303101010','','','','3',3,3);
94+
Warnings:
95+
Warning 1265 Data truncated for column 'string' at row 1
9496
insert ignore into t1 values (0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,NULL,19970807,080706,19970403090807,-1,-1,-1,'-1',-1,-1);
9597
Warnings:
9698
Warning 1264 Out of range value for column 'utiny' at row 1
@@ -128,7 +130,7 @@ select auto,string,tiny,short,medium,long_int,longlong,real_float,real_double,ut
128130
auto string tiny short medium long_int longlong real_float real_double utiny ushort umedium ulong ulonglong mod(floor(time_stamp/1000000),1000000)-mod(curdate(),1000000) date_field time_field date_time blob_col tinyblob_col mediumblob_col longblob_col
129131
10 1 1 1 1 1 1 1.0 1.0000 1 00001 1 1 1 0 0000-00-00 00:00:00 0000-00-00 00:00:00 1 1 1 1
130132
11 2 2 2 2 2 2 2.0 2.0000 2 00002 2 2 2 0 NULL NULL NULL NULL NULL 2 2
131-
12 0.33333 3 3 3 3 3.0 3.0000 3 00003 3 3 3 0 1997-03-03 10:10:10 1997-03-03 10:10:10 3
133+
12 0.333333333 3 3 3 3 3.0 3.0000 3 00003 3 3 3 0 1997-03-03 10:10:10 1997-03-03 10:10:10 3
132134
13 -1 -1 -1 -1 -1 -1 -1.0 -1.0000 0 00000 0 0 0 0 1997-08-07 08:07:06 1997-04-03 09:08:07 -1 -1 -1 -1
133135
14 -429496729 -128 -32768 -8388608 -2147483648 -4294967295 -4294967296.0 -4294967295.0000 0 00000 0 0 0 0 0000-00-00 00:00:00 0000-00-00 00:00:00 -4294967295 -4294967295 -4294967295 -4294967295
134136
15 4294967295 127 32767 8388607 2147483647 4294967295 4294967296.0 4294967295.0000 255 65535 16777215 4294967295 4294967295 0 0000-00-00 00:00:00 0000-00-00 00:00:00 4294967295 4294967295 4294967295 4294967295
@@ -180,7 +182,7 @@ Warning 1265 Data truncated for column 'new_field' at row 7
180182
select * from t2;
181183
auto string mediumblob_col new_field
182184
1 2 2 ne
183-
2 0.3333ne
185+
2 0.33333333ne
184186
3 -1 -1 ne
185187
4 -429496729 -4294967295 ne
186188
5 4294967295 4294967295 ne

mysql-test/suite/sys_vars/r/div_precision_increment_func.result

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ INSERT into t1(name, salary, income_tax) values('Record_2', 501, 501*2.5/1000);
5151
INSERT into t1(name, salary, income_tax) values('Record_3', 210, 210*2.5/1000);
5252
SELECT * from t1;
5353
id name salary income_tax
54-
1 Record_1 100011 250.03
55-
2 Record_2 501 1.25
56-
3 Record_3 210 0.53
54+
1 Record_1 100011 250.027
55+
2 Record_2 501 1.2525
56+
3 Record_3 210 0.525
5757
connect test_con2, localhost, root,,;
5858
connection test_con2;
5959
## Verifying session & global value of variable ##
@@ -69,11 +69,11 @@ INSERT into t1(name, salary, income_tax) values('Record_5', 501, 501*2.5/1000);
6969
INSERT into t1(name, salary, income_tax) values('Record_6', 210, 210*2.5/1000);
7070
SELECT * from t1;
7171
id name salary income_tax
72-
1 Record_1 100011 250.03
73-
2 Record_2 501 1.25
74-
3 Record_3 210 0.53
75-
4 Record_4 100011 250.028
76-
5 Record_5 501 1.253
72+
1 Record_1 100011 250.027
73+
2 Record_2 501 1.2525
74+
3 Record_3 210 0.525
75+
4 Record_4 100011 250.027
76+
5 Record_5 501 1.2525
7777
6 Record_6 210 0.525
7878
## Dropping table t1 ##
7979
drop table t1;

mysql-test/suite/vcol/r/not_supported.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ set time_zone='+1:00';
2929
flush tables;
3030
select * from t1;
3131
a b v
32-
1 2 0.3333000000000000000
32+
1 2 0.3333333330000000000
3333
select * from t8;
3434
a b v
3535
1234567890 2 2009-02-14 00:31:30

0 commit comments

Comments
 (0)