doctrine/sql-formatter

Cannot render SQL queries containing binary strings

开放

#91 创建于 2023年7月21日

 (4 条评论) (3 个反应) (0 位负责人)HTML (17 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (1,559 个星标)
PR 合并指标
 (平均合并 4小时 20分钟) (30 天内合并 1 个 PR)

描述

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

贡献者指南