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

incorrect result returned with binary protocol (prepared statements)

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

            Transition Time In Source Status Execution Times
            Oleksandr Byelkin made transition -
            Open In Progress
            445d 22h 35m 1
            Oleksandr Byelkin made transition -
            Stalled In Progress
            29d 12h 32m 2
            Oleksandr Byelkin made transition -
            In Progress Stalled
            7d 8h 53m 3
            Oleksandr Byelkin made transition -
            Stalled In Review
            3h 51m 1
            Igor Babaev (Inactive) made transition -
            In Review Stalled
            4d 5h 41m 1
            Oleksandr Byelkin made transition -
            Stalled Closed
            2d 16h 30m 1

            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.