Implement Drupal\Core\Database\SupportsTemporaryTablesInterface in Connection

Created on 4 May 2023, over 1 year ago
Updated 16 January 2024, 10 months ago

Problem/Motivation

Drupal 10 makes database driver support for querying temporary tables optional by moving this function into the new SupportsTemporaryTablesInterface . Frustratingly, they didn't backport this interface to D9, so in order to support both D9 and D10 in the same release we need to detect whether or not the interface exists. This can be achieved with a wrapper interface using the interface_exists function

Proposed resolution

Create an sqlsrv version of SupportsTemporaryTablesInterface that implements the upstream version if it exists, and ensure the sqlsrv conection class implements the wrapper interface.

📌 Task
Status

Fixed

Version

4.4

Component

Code

Created by

🇬🇧United Kingdom pstewart

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

Comments & Activities

Production build 0.71.5 2024