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

Syntax error on SELECT INTO @variable with CTE

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.4(EOL)
    • 10.4.9
    • Parser
    • Official Docker images 10.4.0-10.4.8

    Description

      This worked in 10.2 and 10.3 but has syntax error in 10.4. I couldn't find any documentation of the change.

      with data as (select 1 as id)
      select id into @myid from data;
      

      ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'from data' at line 1
      

      Attachments

        Activity

          People

            sanja Oleksandr Byelkin
            jacob.williams Jacob Williams
            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.