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

Syntax error on SELECT INTO @variable with CTE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.4
    • Fix Version/s: 10.4.9
    • Component/s: Parser
    • Labels:
    • Environment:
      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

            Assignee:
            sanja Oleksandr Byelkin
            Reporter:
            jacob.williams Jacob Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: