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

Merge 3.8.x up into 4.0.x #6436

Merged
merged 11 commits into from
Jun 12, 2024
Merged

Merge 3.8.x up into 4.0.x #6436

merged 11 commits into from
Jun 12, 2024

Conversation

greg0ire
Copy link
Member

No description provided.

berkut1 and others added 11 commits June 5, 2024 23:24
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
Fix: Skip type comparison if disableTypeComments is true
|      Q       |   A
|------------- | -----------
| Type         | documentation
| Fixed issues | n/a

#### Summary

The Portability connection is not a valid wrapper class as it does not
extend `Doctrine\DBAL\Connection`. The way to use it is through the
middleware, to wrap the driver connection.
…octrine#6425)

<!-- Fill in the relevant information below to help triage your pull
request. -->

|      Q       |   A
|------------- | -----------
| Type         | bug
| Fixed issues | doctrine#6361

#### Summary

From MariaDB-10.10.1, where uca1400 was added, the
information_schema.COLLATION_CHARACTER_SET_APPLICABILITY was extended to
have FULL_COLLATION_NAME which corresponds to the
information_schema.TABLES.TABLE_COLLATION value.

Executable comment syntax is used to limited to the applicable versions.

To preserve compatibility with older MariaDB versions, and MySQL
versions where the previous COLLATION_NAME was the match is left as a
JOIN criteria. In new MariaDB versions this won't result in an extra row
match.

Closes: doctrine#6361


The lack of this fix did case the CI test to fail with a MariaDB-11.0+
container:


```
1) Doctrine\DBAL\Tests\Functional\Schema\MySQLSchemaManagerTest::testEnsureTableWithoutOptionsAreReflectedInMetadata
Undefined array key "engine"

/home/runner/work/dbal/dbal/src/Schema/Table.php:927
/home/runner/work/dbal/dbal/tests/Functional/Schema/MySQLSchemaManagerTest.php:550
```


With this fix all version of MySQL and MariaDB (even those new ones soon
to be in a different PR) will pass like:
https://github.com/grooverdan/dbal/actions/runs/9412110648/job/25926481038
Cherry-picked from doctrine#6426.

Co-authored-by: Daniel Black <daniel@mariadb.org>
<!-- Fill in the relevant information below to help triage your pull
request. -->

|      Q       |   A
|------------- | -----------
| Type         | improvement
| Fixed issues | N/A <!-- use #NUM format to reference an issue -->

#### Summary

Improve the CI to cover newer versions of MariaDB 11.4+.

Also cover the quay.io/mariadb-foundation/mariadb-devel images from
https://quay.io/repository/mariadb-foundation/mariadb-devel?tab=tags
where they are updated with completed, reviewed and tested changes in
the MariaDB server main branch.

These are completed features/bug fixes in the next server version. As
such this is a good thing to test before the users get the final
product.

ref:
https://mariadb.org/new-service-quay-io-mariadb-foundation-mariadb-devel/

The test failures here are fixed by doctrine#6425.

<!-- Provide a summary of your change. -->
@greg0ire greg0ire merged commit 8edbce7 into doctrine:4.0.x Jun 12, 2024
77 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants