Always set $info['namespace'] on database connection info

Created on 10 February 2020, almost 5 years ago
Updated 12 September 2023, over 1 year ago

Problem/Motivation

We have a method to determine the db driver namespace if it is not provided - \Drupal\Core\Database\Database::getDatabaseDriverNamespace() - which supports supports fallling back to the core db driver namespace. This results in the connection info sometimes having the driver namespace and sometimes not.

Proposed resolution

Always set $info['namespace'] instead of using a method.

Remaining tasks

User interface changes

None

API changes

\Drupal\Core\Database\Database::getDatabaseDriverNamespace() is deprecated in Drupal 9.1.x

Data model changes

None

Release notes snippet

N/a

πŸ“Œ Task
Status

Fixed

Version

9.0

Component
DatabaseΒ  β†’

Last updated about 13 hours ago

  • Maintained by
  • πŸ‡³πŸ‡±Netherlands @daffie
Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

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.71.5 2024