Active
Project:
Drupal core
Version:
main
Component:
database system
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2019 at 13:58 UTC
Updated:
9 Sep 2019 at 14:45 UTC
Jump to comment: Most recent
Databases on different versions have different capabilities. There is not a consistent pattern for how to do this in the Core database abstraction layer DBTNG. This is a hard problem that we have ignored for Drupal 8's life cycle, and most likely an improvement for Drupal 9's life cycle.
The PDO layer has some constants to pass in when opening a connection, but some things are not detectable unless the database version is known and a query made to the database.
Being able to detect capabilities will be important for:
There are a few different scenarios:
doctrine/dbal implements this by separating the "driver" from the "platform".
TBD
Yes.
Hopefully not.
Comments
Comment #2
mradcliffeI couldn't find an existing issue when searching for "feature" or "capability" or "detect" other than my comments in other issues so I'm opening up this. Also based on my ideas issue.
This could be more of a meta/discussion issue.
Comment #3
mondrakeSome ideas in this sense were put in #2657888-14: Add Date function support in DBTNG.