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

mariadb makes non explicit rounding for DECIMAL type dynamic columns

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 10.0.20
    • N/A
    • Dynamic Columns
    • None
    • Linux

    Description

      SET @aaa = COLUMN_CREATE('sum', 18802.5);
      SELECT COLUMN_GET(@aaa, 'sum' AS DECIMAL);

      COLUMN_GET(@aaa, 'sum' as decimal)  
      ------------------------------------
      18803      

      Expected see here 18802.5 because i not pointed here any restrictions for DECIMAL type

      So why by default DECIMAL works as INT? I think this is not expected and not correct.

      Attachments

        Activity

          mikhail Mikhail Gavrilov created issue -
          serg Sergei Golubchik made changes -
          Field Original Value New Value
          Fix Version/s N/A [ 14700 ]
          Resolution Not a Bug [ 6 ]
          Status Open [ 1 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Assignee Sergei Golubchik [ serg ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 70704 ] MariaDB v4 [ 149400 ]

          People

            serg Sergei Golubchik
            mikhail Mikhail Gavrilov
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.