mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Move getSQLResultCasing code into ORM from DBAL
#6802
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @beberlei on GitHub (Aug 5, 2021).
DBAL 2 deprecates and DBAL 3 removes the
getSQLResultCasingAPI, which we use to work around Oracle, PostgreSQL and MySQL differences in the default result casing.To avoid a larger refactoring and be forwards compatible, we need move this functionality into ORM and provide a strategy pattern with different implementations based on DBAL 2 or 3.
A factory method at some point in the ORM should select the right strategy based on DBAL version and database platform and make the service available to everyone who needs sql result casings.
@greg0ire commented on GitHub (Aug 23, 2021):
Actually, I don't think the factory part has been done. @beberlei , can you please review #8934 and tell us if more work is necessary?
@beberlei commented on GitHub (Sep 25, 2021):
@greg0ire its flexible enough that I believe this issue can be closed for now.