doctrine/sql-formatter
Cannot render SQL queries containing binary strings
Aberta
#91 aberto em 21 de jul. de 2023
enhancementhelp wanted
Métricas do repositório
- Stars
- (1.559 estrelas)
- Métricas de merge de PR
- (Mesclagem média 4h 20m) (1 fundiu PR em 30d)
Description
At the moment, even though valid, these kind of queries would crash doctrine-bundle + twig
$connection->executeQuery("SELECT {$connection->quote((new \Symfony\Component\Uid\Ulid())->toBinary())}");
We are running all of these queries through this formatter, so I think formatter should do something about these, eg. detect non-utf8 parts and replace them with something.
Original issue was https://github.com/doctrine/DoctrineBundle/issues/1315, I'm moving it here