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

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 10.7(EOL)
    • 10.7.2
    • Server
    • 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

              rucha174 Rucha Deodhar
              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.