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
There is a test failure in Node creation test on PostgreSQL.
The issue is that PostgreSQL doesn't support bytea LIKE queries, so we need to unserialize first to check for the rollback exception message.
Problematic code:
testFailedPageCreation()
$records = db_query("SELECT wid FROM {watchdog} WHERE variables LIKE '%Test exception for rollback.%'")->fetchAll();
$this->assertTrue(count($records) > 0, 'Rollback explanatory error logged to watchdog.');
This was fixed in Drupal8 7 years ago, see: #2443665: PostgreSQL: Fix node\Tests\NodeCreationTest
Steps to reproduce
Run Node / Node creation tests.
Proposed resolution
Backport #2443665: PostgreSQL: Fix node\Tests\NodeCreationTest
Comments
Comment #2
poker10 CreditAttribution: poker10 at ActivIT s.r.o. commentedComment #4
mcdruidThank you!