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

[PATCH] COLUMN_CHECK fails on valid decimal data

    XMLWordPrintable

Details

    • 10.1.10

    Description

      Similar to MDEV-8565 , COLUMN_CHECK can fail with valid Decimal values:

      select column_check(column_create('0', '0' as decimal, '1', '0' as decimal));
      Result: 0 (failed)

      I think the patch for MDEV-8565 simply missed that decimal 0 is also stored in 0 bytes, as in:

      /* Store decimal zero as empty string */
        if (precision == 0)
          return ER_DYNCOL_OK;

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              adamchainz Adam Johnson
              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.