Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MariaDB 10.7 to the build matrix #5327

Merged
merged 1 commit into from
Mar 20, 2022
Merged

Conversation

morozov
Copy link
Member

@morozov morozov commented Mar 20, 2022

Closes #5010.

$table->addColumn('foo', 'text')->setPlatformOption('charset', 'ascii');
$table->addColumn('bar', 'text')->setPlatformOption('charset', 'latin1');
$this->schemaManager->dropAndCreateTable($table);

$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->addOption('charset', 'latin1');
$table->addColumn('id', 'integer');
$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.

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.

None yet

2 participants