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

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

    XMLWordPrintable

Details

    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

          People

            igor Igor Babaev
            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.