doctrine / doctrine/sql-formatter

Cannot render SQL queries containing binary strings

Open
#91 4 comments 3 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
HTML
Stars
1.9k
Forks
29
PR merge metrics
No merged PRs in 30d

Description

At the moment, even though valid, these kind of queries would crash doctrine-bundle + twig
```php
$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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.