Skip to content

Conversation

duncan3dc
Copy link
Contributor

Q A
Branch? 4.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

As discussed in #35375 Mysqli doesn't support named parameters, so if you pass a doctrine connection using mysqli then you get errors for any queries using named parameters.
This PR ensures a clear error is provided and suggests to use pdo_mysql instead

@nicolas-grekas
Copy link
Member

Thank you @duncan3dc.

nicolas-grekas added a commit that referenced this pull request Jan 27, 2020
… (duncan3dc)

This PR was merged into the 4.3 branch.

Discussion
----------

[Cache] Don't allow mysqli to be used as it doesn't work

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

As discussed in #35375 Mysqli doesn't support named parameters, so if you pass a doctrine connection using `mysqli` then you get errors for any queries using named parameters.
This PR ensures a clear error is provided and suggests to use `pdo_mysql` instead

Commits
-------

a786448 Mysqli doesn't support the named parameters used by PdoAdapter
@nicolas-grekas nicolas-grekas merged commit a786448 into symfony:4.3 Jan 27, 2020
@duncan3dc duncan3dc deleted the mysqli-cache branch January 27, 2020 09:29
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.

3 participants