Merge queries should allow setting the conditionTable

Created on 7 November 2024, 5 months ago

Problem/Motivation

In the \Drupal\Core\Database\Query\Merge class comment it is told that:

By default, the two table names are identical and they are passed into the the constructor. table_name_2 can be specified by the MergeQuery::conditionTable() method. It can be either a string or a subquery.

but the MergeQuery::conditionTable() method is protected.

Proposed resolution

Make the method public so we can use Merge queries to copy data from one table to another.

API changes

\Drupal\Core\Database\Query\Merge::conditionTable() becomes public.

🐛 Bug report
Status

Active

Version

11.1 🔥

Component

database system

Created by

🇫🇷France duaelfr Montpellier, France

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024