Fix #2315269 by sun: Entity/Query/Sql/QueryAggregate: PDOException: GROUP BY clause is required before HAVING.
[fixup] SQLite Views Date format abstraction.
Adjusted Views Data Handler test for SQLite.

SQLite does not support advanced date/calendar operations (such as identifying 2000-01-01 as the 52nd week of 1999).