Skip to content
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

Doctrine\DBAL\Connection->beginTransaction() method logs START TRANSACTION with quotes but it shouldn't #6748

Open
Crovitche-1623 opened this issue Jan 28, 2025 · 0 comments

Comments

@Crovitche-1623
Copy link

Crovitche-1623 commented Jan 28, 2025

Bug Report

Q A
Version 4.2.1

Summary

I think it's a minor bug and I don't know if it's the right repository or the bug belongs to the Symfony Profiler, but the following code:

// `$connection` obtained via `Doctrine\ORM\EntityManagerInterface->getConnection()`
$connection->beginTransaction();

logs the following query in the Symfony Profiler:

Image

I think the runnable query should be START TRANSACTION; without the double quotes isn't it ?

I'm using MySQL 8.2.0.

@Crovitche-1623 Crovitche-1623 changed the title Doctrine\DBAL\Connection->beginTransaction() method log START TRANSACTION with quotes but it shouldn't Doctrine\DBAL\Connection->beginTransaction() method logs START TRANSACTION with quotes but it shouldn't Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant