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

Query failing with syntax error sets ROW_NUMBER to non-zero

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: 10.7
    • Fix Version/s: 10.7.2
    • Component/s: Server
    • Labels:
      None

      Description

      --error ER_PARSE_ERROR
      insert into t values XXX (1),(2);
      get diagnostics condition 1 @n = row_number;
      select @n;
      

      bb-10.7-row_number d555ae38

      select @n;
      +------+
      | @n   |
      +------+
      |    1 |
      +------+
      1 row in set (0.000 sec)
      

      It appears in some cases it can even be greater than 1, although I don't have a test case for this.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rucha174 Rucha Deodhar
              Reporter:
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.