Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

DoctrineTransport utilizes read-only method to write messages. #37220

Copy link
Copy link
Closed
@tylerhcarter

Description

@tylerhcarter
Issue body actions

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

  1. Configure a MasterSlaveConnection with a slave going to a read-only database.
  2. Send a message to a DoctrineTransport configured transport.

Possible Solution
Utilize executeUpdate, which is intended for INSERT commands.

Additional context
Courtesy of @christickner in Symfony Devs #support

Metadata

Metadata

Assignees

No one assigned

    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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.