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

Query with CTE hangs if assignment operator (:=) is used

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.2(EOL), 10.3(EOL)
    • 10.2.13
    • Optimizer - CTE
    • None

    Description

      testcase:

      SET @c=1;
       
      WITH RECURSIVE cte AS
      	(SELECT 5 
      	UNION
      	SELECT @c:=@c+1 FROM cte WHERE @c<3)
      SELECT * FROM cte;
      

      Attachments

        Activity

          alice Alice Sherepa created issue -
          alice Alice Sherepa made changes -
          Field Original Value New Value
          Status Open [ 1 ] Confirmed [ 10101 ]
          igor Igor Babaev (Inactive) made changes -
          Status Confirmed [ 10101 ] In Progress [ 3 ]

          A fix for this bug was pushed into 10.2

          igor Igor Babaev (Inactive) added a comment - A fix for this bug was pushed into 10.2
          igor Igor Babaev (Inactive) made changes -
          Fix Version/s 10.2.13 [ 22910 ]
          Fix Version/s 10.2 [ 14601 ]
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 85359 ] MariaDB v4 [ 153711 ]

          People

            igor Igor Babaev (Inactive)
            alice Alice Sherepa
            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.