Skip to content

Conversation

@keulinho
Copy link
Contributor

Q A
Type improvement

Summary

Add more unit test jobs that use the PDO::STRINGIFY_FETCHES option, as discussed in this PR: #7028 (review)

I didn't add a job for pdo_oci and pdo_sqlsrv as for those drivers the result in QueryBuilderTest was already stringified, therefore I assume those drivers always stringify the fetches, therefore a separate job is not needed

@keulinho
Copy link
Contributor Author

@derrabus would love your review on this one as well ;)

The postgres job already uncovered similar issues like the MySQL one we ran into

For the other tests I personally think it is ok to just skip them for that specific job as it seems they cover some edge cases anyway and only run for specific drivers & configs

Copy link
Member

@derrabus derrabus left a comment

Choose a reason for hiding this comment

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

Thank you again! So the Postgres driver will also fail if we have that option enabled, am I right? We should treat this PR as a bugfix then.

@keulinho
Copy link
Contributor Author

So the Postgres driver will also fail if we have that option enabled, am I right?

@derrabus Yes exactly, IMHO this should be treated as a bugfix

@keulinho keulinho requested a review from derrabus July 23, 2025 07:22
@derrabus derrabus removed the CI label Jul 24, 2025
@derrabus derrabus added this to the 4.3.2 milestone Jul 24, 2025
@derrabus derrabus merged commit d5533f9 into doctrine:4.3.x Jul 24, 2025
90 checks passed
@derrabus derrabus changed the title feat: add more pdo jobs with stringify fetches Fix introspection on PDO_pgsql with PDO::STRINGIFY_FETCHES enabled Jul 24, 2025
derrabus added a commit that referenced this pull request Jul 26, 2025
* 4.3.x:
  feat: add more pdo jobs with stringify fetches (#7052)
  Fix case sensitivity in SQLite column types (#7050)
  Fix length type in `MySQLSchemaManager` with `ATTR_STRINGIFY_FETCHES` enabled (#7028)
  Fix Symfony 8 compatibility issues (#7009)
  Quote MySQL constraint names for foreign keys
derrabus added a commit to derrabus/dbal that referenced this pull request Jul 26, 2025
* 4.4.x:
  Document the JSON_OBJECT type (doctrine#7054)
  [RFC] Introduce Types::JSON_OBJECT (doctrine#7053)
  feat: add more pdo jobs with stringify fetches (doctrine#7052)
  Fix case sensitivity in SQLite column types (doctrine#7050)
  Fix length type in `MySQLSchemaManager` with `ATTR_STRINGIFY_FETCHES` enabled (doctrine#7028)
  Fix Symfony 8 compatibility issues (doctrine#7009)
  Quote MySQL constraint names for foreign keys
morozov pushed a commit to morozov/dbal that referenced this pull request Jul 27, 2025
* 4.4.x:
  Document the JSON_OBJECT type (doctrine#7054)
  [RFC] Introduce Types::JSON_OBJECT (doctrine#7053)
  feat: add more pdo jobs with stringify fetches (doctrine#7052)
  Fix case sensitivity in SQLite column types (doctrine#7050)
  Fix length type in `MySQLSchemaManager` with `ATTR_STRINGIFY_FETCHES` enabled (doctrine#7028)
  Fix Symfony 8 compatibility issues (doctrine#7009)
  Quote MySQL constraint names for foreign keys
@keulinho keulinho deleted the more-stringify-fetch-jobs branch July 28, 2025 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants