mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
SQL Function ROUND is not parsed in Query\Parser #5826
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 @cgardiennet on GitHub (Dec 28, 2017).
Originally assigned to: @Ocramius on GitHub.
The SQL function ROUND is not parsed in Query\Parser.
Need to be added.
@cgardiennet commented on GitHub (Jan 2, 2018):
Need this in a future 2.5 version
@Ocramius commented on GitHub (Jan 2, 2018):
@cgardiennet this is available in DoctrineExtensions
@cgardiennet commented on GitHub (Jan 2, 2018):
@Ocramius The solution to use DoctrineExtension is not a good one for me:
@Ocramius commented on GitHub (Jan 2, 2018):
Yep, you should send a patch to
DoctrineExtensionsthen :-)Patches here also welcome, as long as behavior is consistent on all platforms.
@cgardiennet commented on GitHub (Jan 2, 2018):
The most important annoying fact for me is that i have to declare a custom DQL function (ROUND) when this is a standard SQL function...
@Ocramius commented on GitHub (Jan 2, 2018):
That holds true for most SQL functions. DQL is kinda like a subset of SQL, and we can only expand it where functionality applies to all DB vendors.
@cgardiennet commented on GitHub (Jan 2, 2018):
ROUND exist in all DB !
@cgardiennet commented on GitHub (Jan 2, 2018):
And most important, it is implemented in Doctrine DBAL for all platforms !
@Ocramius commented on GitHub (Jan 2, 2018):
Send a patch then 👍
@cgardiennet commented on GitHub (Jan 2, 2018):
Already done : https://github.com/doctrine/doctrine2/pull/6954