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

Allow UPDATE/DELETE to read from a CTE

    XMLWordPrintable

Details

    • Hide
      UPDATE and DELETE statements now also allow the inclusion of a Common Table Expression (CTE) prior to the UPDATE or DELETE statement
      * UPDATE/DELETE can now read from a CTE
      * This is an extension from the SQL standard which is also available in other DBMS
      * These CTEs are read only like other derived tables, so
      cannot have their columns updated in updates set clause, nor have rows
      removed in the delete statement.
      Show
      UPDATE and DELETE statements now also allow the inclusion of a Common Table Expression (CTE) prior to the UPDATE or DELETE statement * UPDATE/DELETE can now read from a CTE * This is an extension from the SQL standard which is also available in other DBMS * These CTEs are read only like other derived tables, so cannot have their columns updated in updates set clause, nor have rows removed in the delete statement.

    Description

      This is a part of MDEV-18511.

      The most common use case in it is when the UPDATE/DELETE reads from a CTE but doesn't change it.
      This should be relatively easy to implement.

      Attachments

        Issue Links

          Activity

            People

              Johnston Rex Johnston
              psergei Sergei Petrunia
              Rex Johnston Rex Johnston
              Sergei Petrunia Sergei Petrunia
              Pavithra Pandith Pavithra Pandith
              Votes:
              0 Vote for this issue
              Watchers:
              9 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.