Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
SQL Server fails the test Drupal\KernelTests\Core\Entity\EntityQueryAggregateTest::testAggregation(), because it needs to do something special for the aggregate function avg
. It changes the query from SELECT avg([entity_test].[id]) AS [id_avg]
to SELECT avg(([entity_test].[id]) * 1.0) AS [id_avg]
. We are running a regular expression test to see if the change is correct and the change for SQL Server makes it fail the test.
Proposed resolution
Change the expected pattern a little, so that the test also passes for SQL Server.
Remaining tasks
TBD
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
None
Comment | File | Size | Author |
---|---|---|---|
#2 | 3244156-2.patch | 1.11 KB | daffie |
Comments
Comment #2
daffie CreditAttribution: daffie commentedThe fix.
Comment #3
BeakerboyThis test was introduced in D9.1, so this patch could be easily applied to 9.1 and 9.2. Since it is a testing-only patch, there will be no effect on users.
Comment #4
Beakerboyfixed the "from" code.
Comment #5
alexpottCommitted and pushed a4b97b7406 to 9.3.x and 28327b1136 to 9.2.x. Thanks!
Backported to 9.2.x since this is test only.