Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-5819

MySQL Bug #13500371 63704: CONVERSION OF '1.' TO A NUMBER GIVES ERROR 1265 (WARN_DATA_TRUNCATED)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0.9
    • Fix Version/s: 10.0.10
    • Component/s: None
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              sanja Oleksandr Byelkin added a comment -

              === 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

              Show
              sanja Oleksandr Byelkin added a comment - === 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
              Hide
              sanja Oleksandr Byelkin added a comment -

              IMHO it should be checked & fixed in earlier versions

              Show
              sanja Oleksandr Byelkin added a comment - IMHO it should be checked & fixed in earlier versions
              Hide
              sanja Oleksandr Byelkin added a comment -

              fixed only in 10. because the issue is minor.

              Show
              sanja Oleksandr Byelkin added a comment - fixed only in 10. because the issue is minor.

                People

                • Assignee:
                  sanja Oleksandr Byelkin
                  Reporter:
                  svoj Sergey Vojtovich
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: