[TASK] Doctrine: Add support for aggregate SQL functions 26/47826/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Wed, 20 Apr 2016 17:59:47 +0000 (19:59 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Thu, 5 May 2016 20:59:46 +0000 (22:59 +0200)
commit8f601d5334ce521f1220e9a5739144c81606bd8c
treeb719fc9c5fb5c6f174d30eef8a1605dc3bc59a79
parentbf348b606a85d94731cf2edccbb07dd709e43d7e
[TASK] Doctrine: Add support for aggregate SQL functions

This patch extends the SQL Expressionbuilder with support for generating
expressions for MIN, MAX, AVG, SUM and COUNT aggregate functions, as
well as adding support for selecting literal (unquoted) SQL expressions
with the QueryBuilder using ->selectLiteral() and ->addSelectLiteral().

Releases: master
Resolves: #75822
Change-Id: Id1043ec8a60be1e6d3c273278a776e92bb8c973e
Reviewed-on: https://review.typo3.org/47826
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/core/Classes/Database/Query/Expression/ExpressionBuilder.php
typo3/sysext/core/Classes/Database/Query/QueryBuilder.php
typo3/sysext/core/Tests/Unit/Database/Query/Expression/ExpressionBuilderTest.php
typo3/sysext/core/Tests/Unit/Database/Query/QueryBuilderTest.php