[MDEV-5819] MySQL Bug #13500371 63704: CONVERSION OF '1.' TO A NUMBER GIVES ERROR 1265 (WARN_DATA_TRUNCATED) Created: 2014-03-11  Updated: 2014-03-14  Resolved: 2014-03-14

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.9
Fix Version/s: 10.0.10

Type: Bug Priority: Major
Reporter: Sergey Vojtovich Assignee: Oleksandr Byelkin
Resolution: Fixed Votes: 0
Labels: None

Attachments: Text File bug13500371.patch    
Issue Links:
PartOf
is part of MDEV-4784 merge test cases from 5.6 Stalled

 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.



 Comments   
Comment by Oleksandr Byelkin [ 2014-03-14 ]

=== 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 - 1 && c == '.')
    + if (s < end && c == '.')
    {
    ++s;
    if (!nd)

above is fix by MySQL

Comment by Oleksandr Byelkin [ 2014-03-14 ]

IMHO it should be checked & fixed in earlier versions

Comment by Oleksandr Byelkin [ 2014-03-14 ]

fixed only in 10. because the issue is minor.

Generated at Thu Feb 08 07:07:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.