[PR #1122] Support arithmetic expressions in COUNT() #9178

Closed
opened 2026-01-22 16:03:29 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/1122

State: closed
Merged: Yes


tl;dr:

Following is now allowed (example):

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

**Original Pull Request:** https://github.com/doctrine/orm/pull/1122 **State:** closed **Merged:** Yes --- tl;dr: Following is now allowed (example): ``` 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 pull-request label 2026-01-22 16:03:29 +01:00
admin closed this issue 2026-01-22 16:03:29 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#9178