mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-2668: DQL TRIM function is not converted into TRIM SQL correctly #3344
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Sep 10, 2013).
Jira issue originally created by user slavik2121:
Hi!
Using DQL to generate SQL TRIM code won't trim '0'.
For ex., this expression doesn't work:
This is happening as whenever TRIM DQL is converted into SQL, trimming character is checked for being 'false' multiple times. In php, both 0 and '0' are equaled to false.
{quote}
doctrine/orm/lib/Doctrine/ORM/Query/AST/Functions/TrimFunction.php:61
doctrine/dbal/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php:640
{quote}
@doctrinebot commented on GitHub (Sep 26, 2013):
Issue was closed with resolution "Fixed"