mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
A fix (bug #10404: select 0/0 returns 0).
strings/decimal.c: A fix (bug #10404: select 0/0 returns 0). We should check the second argument (0?) first.
This commit is contained in:
@ -842,3 +842,7 @@ drop table Sow6_2f;
|
||||
select 10.3330000000000/12.34500000;
|
||||
10.3330000000000/12.34500000
|
||||
0.83701903604698258
|
||||
set sql_mode='';
|
||||
select 0/0;
|
||||
0/0
|
||||
NULL
|
||||
|
@ -869,3 +869,10 @@ drop table Sow6_2f;
|
||||
# bug#9501
|
||||
#
|
||||
select 10.3330000000000/12.34500000;
|
||||
|
||||
#
|
||||
# Bug #10404
|
||||
#
|
||||
|
||||
set sql_mode='';
|
||||
select 0/0;
|
||||
|
Reference in New Issue
Block a user