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

Wrong result in assignment a value of DECIMAL type to a user variable in case cursor-protocol is on

    XMLWordPrintable

Details

    Description

      CREATE TABLE t1 (a DECIMAL);
      INSERT INTO t1 VALUES (100);
      SELECT a INTO @aaa FROM t1;
      DROP TABLE t1;
       
      SELECT @aaa;
      

      Results differs in case the test is run with and without the option cursor-protocol
      In case the test is run with the option cursor-protocol the test fails with the following diff

      @@ -4,4 +4,4 @@
       DROP TABLE t1;
       SELECT @aaa;
       @aaa
      -100
      +100.00000000000000000000000000000000000000
       
      Result length mismatch
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            shulga Dmitry Shulga
            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.