-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
BugGood first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)Help wantedIssues and PRs which are looking for volunteers to complete them.Issues and PRs which are looking for volunteers to complete them.MessengerStatus: Needs Review
Description
Symfony version(s) affected: 5.0.9
Description
DoctrineTransport utilizes executeQuery to write a message to the database. executeQuery is meant to be read-only, and when using a MasterSlaveConnection, this can cause the message to be written to a read-only database.
How to reproduce
- Configure a
MasterSlaveConnectionwith a slave going to a read-only database. - Send a message to a
DoctrineTransportconfigured transport.
Possible Solution
Utilize executeUpdate, which is intended for INSERT commands.
Additional context
Courtesy of @christickner in Symfony Devs #support
Metadata
Metadata
Assignees
Labels
BugGood first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)Help wantedIssues and PRs which are looking for volunteers to complete them.Issues and PRs which are looking for volunteers to complete them.MessengerStatus: Needs Review