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

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0.9
    • 10.0.10
    • 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

          Activity

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

            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

            IMHO it should be checked & fixed in earlier versions

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

            fixed only in 10. because the issue is minor.

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

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.