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

CONCAT() returns incorerct result with cursor protocol for engine Rocksdb

    XMLWordPrintable

Details

    Description

      CONCAT() cuts part of the string with result:
      Case: (run MTR test with --cursor-protocol):

       CREATE TABLE t1 (
        f20_3 FLOAT(20,3) ,
        d53 DOUBLE(53,0) ,
        d53_10 DOUBLE(53,10)
      )  ENGINE=rocksdb;
      INSERT INTO t1 (f20_3,d53,d53_10) VALUES (
        99999999999999999.999,
        1999999999999999999999999999999999999999999999999999999,
        19999999999999999999999999999999999999999999.9999999999
      );
      query_vertical
      SELECT
        CONCAT('', f20_3),
        CONCAT('', d53),
        CONCAT('', d53_10) FROM t1;
      

      Expected result:

      CONCAT('', f20_3)      99999998430674940.000
      CONCAT('', d53)        100000000000000000000000000000000000000000000000000000
      CONCAT('', d53_10)     10000000000000000000000000000000000000000000.0000000000
      

      Actual result:

      CONCAT('', f20_3)      99999998430674940.00
      CONCAT('', d53)        10000000000000000000000000000000000000000000000000000
      CONCAT('', d53_10)     10000000000000000000000000000000000000000000.00000000
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              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.