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

Issue #3631 - possible fix for Mysqli #3639

Closed
wants to merge 12 commits into from
Closed

Issue #3631 - possible fix for Mysqli #3639

wants to merge 12 commits into from

Conversation

mmucklo
Copy link
Contributor

@mmucklo mmucklo commented Jul 31, 2019

Q A
Type bug
BC Break no
Fixed issues #3631

Summary

Create a new DOUBLE type to satisfy the 'd' type necessary for full Mysqli compatibility as referenced here: mysqli_stmt::bind_param.

rdarcy1 and others added 2 commits July 2, 2019 00:20
Change "we're" to "where" in docblock for listTableColumns()
method. Add comma to improve readability.
@mmucklo mmucklo marked this pull request as ready for review July 31, 2019 03:00
morozov and others added 6 commits August 3, 2019 10:24
Bumped PHPUnit requrement to ^8.3.3, removed dependency on symfony/phpunit-bridge
The failures are caused by the changes in PHP according to https://wiki.php.net/rfc/notice-for-non-valid-array-container.
Using command line options to configure MySQL 8 instead of mounting a config file
@mmucklo
Copy link
Contributor Author

mmucklo commented Aug 4, 2019

Mysql8.0 build failing due to authentication issues, all other tests pass.

@Ocramius
Copy link
Member

Ocramius commented Aug 4, 2019

for full Mysqli compatibility

Would most likely need an integration test. Something that runs SELECT 1 WHERE 1 > ? would suffice, for example.

/**
* Represents a double data type.
*/
public const DOUBLE = 32;
Copy link
Member

Choose a reason for hiding this comment

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

It doesn't have to be a power of two since parameter types do aren't used as bits in a bitmask. Please use 17.

*/
public function getBindingType()
{
return ParameterType::INTEGER;
Copy link
Member

Choose a reason for hiding this comment

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

Why do we want to bind floats as integers?

@morozov
Copy link
Member

morozov commented Aug 4, 2019

Mysql8.0 build failing due to authentication issues, all other tests pass.

Please rebase on top of the latest master. We fixed a few related issues yesterday.

@morozov
Copy link
Member

morozov commented Aug 4, 2019

Would most likely need an integration test. Something that runs SELECT 1 WHERE 1 > ? would suffice, for example.

Please make sure you reproduce the scenario described in #3631 which warrants the code change. Just using a float in a query already works and doesn't require changes.

@mmucklo mmucklo closed this Aug 4, 2019
mmucklo added a commit to mmucklo/dbal that referenced this pull request Aug 4, 2019
mmucklo added a commit to mmucklo/dbal that referenced this pull request Aug 4, 2019
mmucklo added a commit to mmucklo/dbal that referenced this pull request Aug 4, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants