1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix for bug #10004 (Decimal operation crashes server)

mysql-test/r/type_newdecimal.result:
  test result fixed
mysql-test/t/type_newdecimal.test:
  test case added
strings/decimal.c:
  old code didn't work when both decimals had zero before the decimal point
This commit is contained in:
unknown
2005-05-06 20:06:25 +05:00
parent 0baed276c3
commit f98913819b
3 changed files with 20 additions and 8 deletions

View File

@ -846,3 +846,6 @@ set sql_mode='';
select 0/0;
0/0
NULL
select 0.190287977636363637 + 0.040372670 * 0 - 0;
0.190287977636363637 + 0.040372670 * 0 - 0
0.190287977636363637

View File

@ -876,3 +876,8 @@ select 10.3330000000000/12.34500000;
set sql_mode='';
select 0/0;
#
# Bug #10004
#
select 0.190287977636363637 + 0.040372670 * 0 - 0;