8000 [Messenger] Catch TableNotFoundException in MySQL delete by acbramley · Pull Request #54121 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@acbramley
Copy link
Contributor
@acbramley acbramley commented Mar 1, 2024
Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #54120
License MIT

When using a MySQL based DB, if the database table doesn't exist when calling Connection::get - it will result in an exception even when auto setup is enabled.

I still need to look into how/where tests would go.

< 8000 p class="ml-1 mb-2 mt-2" data-show-on-error hidden> Sorry, something went wrong.

@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has a contribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (see https://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (see https://symfony.com/releases)
  • Features and deprecations must be submitted against the 7.1 branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@carsonbot carsonbot changed the title Catch TableNotFoundException in MySQL delete [Messenger] Catch TableNotFoundException in MySQL delete Mar 13, 2024
@nicolas-grekas
Copy link
Member

I suppose 5.4 is also affected? Could you please rebase+retarget for the lowest affected (and maintained) branch?