Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.0.9
-
None
-
None
Description
Test case for MySQL "Bug #13500371 63704: CONVERSION OF '1.' TO A NUMBER GIVES ERROR 1265 (WARN_DATA_TRUNCATED)" fails in 10.0.
Test diff attached. Please try to apply test case as is unless it is applicable.
Attachments
Issue Links
- is part of
-
MDEV-4784 merge test cases from 5.6
-
- Stalled
-
=== modified file 'strings/dtoa.c'
— a/strings/dtoa.c 2013-09-14 01:09:36 +0000
+++ b/strings/dtoa.c 2014-03-14 07:31:16 +0000
@@ -1410,7 +1410,7 @@ static double my_strtod_int(const char *
else if (nd < 16)
z= 10*z + c - '0';
nd0= nd;
+ if (s < end && c == '.')
{
++s;
if (!nd)
above is fix by MySQL