View Issue Details

IDProjectCategoryView StatusLast Update
0004940Composrcore_database_driverspublic2022-09-17 00:02
ReporterChris GrahamAssigned To 
SeverityFeature-request 
Status non-assignedResolutionopen 
Product Version 
Fixed in Version 
Summary0004940: XML DB aggregate expression support
DescriptionCurrently the XML database driver does not support expressions involving aggregate functions.

Consider this query we were considering doing...

SELECT recipient_id,SUM(amount_points)+SUM(gift_points)-(SELECT SUM(amount_points)+SUM(gift_points) FROM cms11_points_ledger refund WHERE refund.status='refund' AND refund.date_and_time>=START AND refund.date_and_time<END AND refund.recipient_id=normal.recipient_id) AS points FROM cms11_points_ledger normal WHERE normal.status='normal' AND normal.date_and_time>=START AND normal.date_and_time<END GROUP BY recipient_id ORDER BY points DESC;

We cannot do that because of the limitation in the XML database driver.
TagsNo tags attached.
Time estimation (hours)3
Sponsorship open

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2022-09-17 00:02 Chris Graham New Issue