You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, DoctrineBundle/DBAL could throw an exception when both settings are found but don't match (in DSN & config).
It is possible to configure two different server versions using DSN and config. This can affect driver selection and cause issues which are hard for users to debug. Therefor, I suggest treating this as an unsupported use-case in 3.0. To allow for a transition without BC breaks, 2.x should throw a deprecation warning in such cases, which can then be changed to an exception in 3.0.
This could theoretically expand to more settings that can be configured in DSN and configuration, but server_version was the one this came up with.
The text was updated successfully, but these errors were encountered:
Oups sorry I meant this on driver and server_version mainly :)
alcaeus
changed the title
Trigger deprecation when configuring different character sets
Trigger deprecation when configuring different versions
Nov 28, 2019
Feature Request
Summary
Initially suggested by @nicolas-grekas in symfony/recipes#693 (comment):
It is possible to configure two different server versions using DSN and config. This can affect driver selection and cause issues which are hard for users to debug. Therefor, I suggest treating this as an unsupported use-case in 3.0. To allow for a transition without BC breaks, 2.x should throw a deprecation warning in such cases, which can then be changed to an exception in 3.0.
This could theoretically expand to more settings that can be configured in DSN and configuration, but
server_version
was the one this came up with.The text was updated successfully, but these errors were encountered: