Skip to content

Add MariaDB 10.7 to the build matrix#5327

Merged
morozov merged 1 commit intodoctrine:2.13.xfrom
morozov:mariadb-10.7
Mar 20, 2022
Merged

Add MariaDB 10.7 to the build matrix#5327
morozov merged 1 commit intodoctrine:2.13.xfrom
morozov:mariadb-10.7

Conversation

@morozov
Copy link
Member

@morozov morozov commented Mar 20, 2022

Closes #5010.

$columns = $this->schemaManager->listTableColumns('test_column_charset');

self::assertFalse($columns['id']->hasPlatformOption('charset'));
self::assertEquals('utf8', $columns['no_charset']->getPlatformOption('charset'));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assertion was removed in #4644 as well. In this test, we don't care what charset the database uses by default.

$table->addColumn('text', 'text');
$table->addColumn('foo', 'text')->setPlatformOption('collation', 'latin1_swedish_ci');
$table->addColumn('bar', 'text')->setPlatformOption('collation', 'utf8_general_ci');
$table->addColumn('bar', 'text')->setPlatformOption('collation', 'utf8mb4_general_ci');
Copy link
Member Author

@morozov morozov Mar 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the documentation:

MariaDB 10.6, utf8 is an alias for utf8mb3.

In order to test schema introspection, we should use a charset that isn't an alias so that it's introspected as is.

COLLATE utf8_general_ci
COLLATE utf8mb4_general_ci
ENGINE InnoDB
ROW_FORMAT COMPRESSED
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes the following error on MariaDB 10.7:

InnoDB refuses to write tables with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.

When testing schema introspection, we don't care about the specific value of the row format, so we can use any other valid value.

@morozov morozov marked this pull request as ready for review March 20, 2022 18:09
@morozov morozov added this to the 2.13.9 milestone Mar 20, 2022
@morozov morozov requested a review from derrabus March 20, 2022 18:17
@morozov morozov merged commit 21a1b63 into doctrine:2.13.x Mar 20, 2022
@morozov morozov deleted the mariadb-10.7 branch March 20, 2022 18:28
@morozov morozov added this to the 3.3.4 milestone Jun 3, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants