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

select rtrim command result is truncated

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.5.18
    • 10.4, 10.5, 10.6, 10.11
    • Server
    • None
    • centos 7.6

    Description

      MariaDB [mydb]> show create table t2;
      +-------+----------------------------------------------------------------------------------------+
      | Table | Create Table                                                                           |
      +-------+----------------------------------------------------------------------------------------+
      | t2    | CREATE TABLE `t2` (
        `col` double DEFAULT NULL
      ) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
      +-------+----------------------------------------------------------------------------------------+
      1 row in set (0.000 sec)
       
      MariaDB [mydb]> select col from t2;
      +-------------------------+
      | col                     |
      +-------------------------+
      | -1.7976931348623157e308 |
      +-------------------------+
      1 row in set (0.000 sec)
       
      MariaDB [mydb]> select rtrim(col) from t2;
      +-------------------------+
      | rtrim(col)              |
      +-------------------------+
      | -1.7976931348623157e308 |
      +-------------------------+
      1 row in set (0.000 sec)
       
      MariaDB [mydb]> select col from t2 group by 1;
      +-------------------------+
      | col                     |
      +-------------------------+
      | -1.7976931348623157e308 |
      +-------------------------+
      1 row in set (0.001 sec)
       
      MariaDB [mydb]> select rtrim(col) from t2 group by 1;
      +------------------------+
      | rtrim(col)             |
      +------------------------+
      | -1.7976931348623157e30 |
      +------------------------+
      1 row in set (0.001 sec)
      
      

      Attachments

        Activity

          People

            bar Alexander Barkov
            dongjian dongjian
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.