{"action":"opened","issue":{"url":"https://api.github.com/repos/doctrine/doctrine2/issues/5544","labels_url":"https://api.github.com/repos/doctrine/doctrine2/issues/5544/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/doctrine2/issues/5544/comments","events_url":"https://api.github.com/repos/doctrine/doctrine2/issues/5544/events","html_url":"https://github.com/doctrine/doctrine2/issues/5544","id":121493013,"number":5544,"title":"$qb->expr()->countDistinct() fails with multiple values","user":{"login":"greeny","id":3734204,"avatar_url":"https://avatars.githubusercontent.com/u/3734204?v=3","gravatar_id":"","url":"https://api.github.com/users/greeny","html_url":"https://github.com/greeny","followers_url":"https://api.github.com/users/greeny/followers","following_url":"https://api.github.com/users/greeny/following{/other_user}","gists_url":"https://api.github.com/users/greeny/gists{/gist_id}","starred_url":"https://api.github.com/users/greeny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greeny/subscriptions","organizations_url":"https://api.github.com/users/greeny/orgs","repos_url":"https://api.github.com/users/greeny/repos","events_url":"https://api.github.com/users/greeny/events{/privacy}","received_events_url":"https://api.github.com/users/greeny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-10T14:09:01Z","updated_at":"2015-12-10T14:09:01Z","closed_at":null,"body":"I have $qb (QueryBuilder), and i call this:\r\n\r\n`$qb->expr()->countDistinct('e.name', 'e.value')`\r\n\r\nGenerated SQL / DQL is valid, but Parser complains about syntax error:\r\n\r\n`Error: Expected Doctrine\\ORM\\Query\\Lexer::T_CLOSE_PARENTHESIS, got ','`\r\n\r\nIn tests, there is a test for multiple arguments in `countDistinct()`, but no test for Parser accepting multiple arguments for `COUNT(DISTINCT`"}}