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

CONCAT Function Returns Unexpected Empty Set in Query

    XMLWordPrintable

Details

    Description

      CREATE TABLE IF NOT EXISTS t0 (
          c0_1 VARCHAR(200),
          c0_2 TEXT
      );
       
      INSERT INTO t0 VALUES ('0.67882431850', '97966');
      MariaDB [test]> select * from t0;
      +---------------+-------+
      | c0_1          | c0_2  |
      +---------------+-------+
      | 0.67882431850 | 97966 |
      +---------------+-------+
      1 row in set (0.002 sec)
      

      Execute the query:

      SELECT (CONCAT(t0.c0_1, t0.c0_2)) AS ref0 FROM t0 WHERE (CONCAT(t0.c0_1, t0.c0_2));
      

      Expected Result:
      The query should return a single row with the value 0.6788243185097966 in the ref0 column.

      Actual Result:
      The query returns an empty set.

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              dwenking Wenqian Deng
              Votes:
              0 Vote for this issue
              Watchers:
              6 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.