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

incorrect result returned with binary protocol (prepared statements)

    XMLWordPrintable

Details

    • 10.2.11, 10.2.12

    Description

      runnig following test suite with and without --ps-protocol produce different results.

      create table  DUPPP (code varchar(10) primary key);
      INSERT INTO DUPPP(code) VALUES ('LINE1'), ('LINE2'), ('LINE3');
      SELECT X.* FROM (SELECT CODE, RN FROM (SELECT A.CODE, @cnt := @cnt + 1 AS RN FROM  DUPPP A, (SELECT @cnt := 0) C) T) X;
      drop table DUPP;
      

      normal execution:

      CODE	RN
      LINE1	1
      LINE2	2
      LINE3	3
      

      with --ps-protocol:

      CODE	RN
      LINE3	3
      LINE3	3
      LINE3	3
      

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              sanja Oleksandr Byelkin
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.