Make the backend overridable service discovery also check the database type for an overridden service

Created on 26 April 2020, about 4 years ago
Updated 12 September 2023, 9 months ago

Problem/Motivation

For database drivers that override an other database driver, such as https://www.drupal.org/project/pgsql_fallback β†’ , have to create their own implementation for backend overridden services. The PostgreSQL fallback driver has to create its own service for the pgsql.views.date_sql service. This is problematic because the PostgreSQL fallback driver lives in a module and it is not enabled by default and therefor the backend overridden service does not exist until it is enabled.
Core now only uses the driver name to check for a backend overridden service. The PostgreSQL fallback driver has the driver name "PgsqlFallback", not "pgsql".

Proposed resolution

Make the backend overridable service discovery also check with for the Connection->databaseType() service override when there is no override for Connection->driver() service.

Remaining tasks

TBD

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

TBD

πŸ“Œ Task
Status

Fixed

Version

9.0

Component
BaseΒ  β†’

Last updated 8 minutes ago

Created by

πŸ‡³πŸ‡±Netherlands daffie

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024