Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

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

Merged
merged 1 commit into from
Jan 27, 2020

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