-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore query()
call for primary/replica connections
#9236
Restore query()
call for primary/replica connections
#9236
Conversation
@derrabus the (deprecated) UuidGenerator is also affected by the same issue (it was also using |
ce8f0d4
to
017fe6c
Compare
Fixed as well! |
02a58d6
to
e68094e
Compare
I have an alternative here: #9239 |
3f159c5
to
479d586
Compare
@beberlei Your alternative targets 2.11. Shall we merge this PR anyway to fix the regression on 2.10? |
@derrabus the alternative version could be applied on 2.10 if that's the selected solution IMO. |
If we allow that kind of change in a bugfix release, okay. |
Closing in favor of #9239 |
On DBAL 2,
PrimaryReadReplicaConnection::query()
executed the query on the primary connection. I broke the usage of this "hidden feature" while removing deprecated calls. This PR restores the functionality. At the same time, it removes mock logic that was supposed to catch my mistake but did not succeed doing so.