DDC-3276: [GH-1122] Support arithmetic expressions in COUNT() #4055

Closed
opened 2026-01-22 14:34:25 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Aug 26, 2014).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of Ocramius:

Url: https://github.com/doctrine/doctrine2/pull/1122

Message:

tl;dr:

Following is now allowed

SELECT COUNT(DISTINCT CONCAT(u.name, u.surname)) FROM User u

I am not aware of RDBMS implementations that do not support this. Ping @guilhermeblanco

Originally created by @doctrinebot on GitHub (Aug 26, 2014). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of Ocramius: Url: https://github.com/doctrine/doctrine2/pull/1122 Message: tl;dr: Following is now allowed ``` sql SELECT COUNT(DISTINCT CONCAT(u.name, u.surname)) FROM User u ``` I am not aware of RDBMS implementations that do not support this. Ping @guilhermeblanco
admin added the Improvement label 2026-01-22 14:34:25 +01:00
admin closed this issue 2026-01-22 14:34:25 +01:00
Author
Owner

@doctrinebot commented on GitHub (Aug 27, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1122] was assigned:
https://github.com/doctrine/doctrine2/pull/1122

@doctrinebot commented on GitHub (Aug 27, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-1122] was assigned: https://github.com/doctrine/doctrine2/pull/1122
Author
Owner

@doctrinebot commented on GitHub (Aug 27, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1122] was closed:
https://github.com/doctrine/doctrine2/pull/1122

@doctrinebot commented on GitHub (Aug 27, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-1122] was closed: https://github.com/doctrine/doctrine2/pull/1122
Author
Owner

@doctrinebot commented on GitHub (Aug 27, 2014):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Aug 27, 2014): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4055