-
Notifications
You must be signed in to change notification settings - Fork 22
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
Cannot render SQL queries containing binary strings #91
Comments
I hit this error because we have binary values in our db queries. The exception was thrown in
By adding a Our project is using version 2.7.2 of the bundle, and the offending lines in Sorry, I don't have time to test this in more depth and do a PR. But I hope this helps. |
Just wanted to mention. I'm using version 2.11.1 of the bundle. In I'm terrible at PR's so I better dont do it. Last time it took me a few days to do one correctly with lots of help. Anyway, hopefully my input helped a bit. Looking forward to a fix for this. |
This library handles binary strings perfectly. However, no transformation of non-printable characters is done and can be done ATM, as this library is DB vendor-independent and no unified grammar to escape/encode string literal exists. So the only solution is to introduce DB specific formatters. |
Completely overseen this thread. |
At the moment, even though valid, these kind of queries would crash doctrine-bundle + twig
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 doctrine/DoctrineBundle#1315, I'm moving it here
The text was updated successfully, but these errors were encountered: