-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
$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')); |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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 forutf8mb3
.
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 |
There was a problem hiding this comment.
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.
Closes #5010.