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

TRUNCATE(X,D) returns incorrect result in view

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9
    • 10.11
    • None

    Description

      Test:

      create view v1 as select truncate(99999999999999999999999999999999999999,49);
      select * from v1;
      drop view v1;
      

      Actual result:

      truncate(99999999999999999999999999999999999999,49)
      999999999999999999999999999.99999999999999999999999999999999999999
      

      Expected result:

      truncate(99999999999999999999999999999999999999,49)
      99999999999999999999999999999999999999.000000000000000000000000000000000000
      

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              lstartseva Lena Startseva
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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