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

Subquery gives wrong results in ON DUPLICATE KEY UPDATE ... part of INSERT

    XMLWordPrintable

Details

    Description

      In case of multi-row update like this

      INSERT ... SELECT ... ON DUPLICATE KEY UPDATE b=(select ... )

      all rows get last subquery result

      This bug has been reported upstream, see https://bugs.mysql.com/107325

      Tested mariadb versions (with issue):

      Tested mysql versions (with issue):

      Attachments

        Activity

          People

            psergei Sergei Petrunia
            janezr-bens Janez Resnik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.