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

貢獻者指南