SelectPagerDefaultTest is failed with MemSQL database driver https://www.drupal.org/project/memsql.

SQL standard doesn't define and databases can not guarantee default sorting order, so such order has to be defined in the query if we need specific order.

Query in the testInnerPagerQuery in core/modules/system/tests/src/Functional/Database/SelectPagerDefaultTest.php returns 27, 26, 25, 28 if MemSQL driver is used (actually, the same result if I run this query in the MemSQL console).
Expected result: [25, 26, 27, 28]

Comments

sinn created an issue. See original summary.

sinn’s picture

Status: Active » Needs review
StatusFileSize
new612 bytes

Patch is attached.

daffie’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Contrib database driver

I have reviewed your patch and I do not see any problems for any other database drivers. Also the test keeps on testing what it supposed to test. For me it is RTBC.

  • catch committed a96d4b3 on 9.1.x
    Issue #3119924 by sinn: SelectPagerDefaultTest should not rely on...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed b686af2 and pushed to 9.1.x, cherry-picked back to 8.9.x. Thanks!

  • catch committed 134ea3f on 9.0.x
    Issue #3119924 by sinn: SelectPagerDefaultTest should not rely on...

  • catch committed d4e5617 on 8.9.x
    Issue #3119924 by sinn: SelectPagerDefaultTest should not rely on...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.