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

Fix #64032: mysqli reports different client_version #5213

Closed
wants to merge 1 commit into from

Conversation

cmb69
Copy link
Contributor

@cmb69 cmb69 commented Feb 26, 2020

While mysqli_get_client_version() calls mysql_get_client_version()
to retrieve the client version, mysql::$client_version is initialized
to MYSQL_VERSION_ID. Both should match though, and since the former
is the more useful information, we fix mysql::$client_version.

We do not add a regression test, because it would usually succeed
anyway, and we already have several tests with respective assert()s.

While `mysqli_get_client_version()` calls `mysql_get_client_version()`
to retrieve the client version, `mysql::$client_version` is initialized
to `MYSQL_VERSION_ID`.  Both should match though, and since the former
is the more useful information, we fix `mysql::$client_version`.

We do not add a regression test, because it would usually succeed
anyway, and we already have several tests with respective `assert()`s.
@cmb69
Copy link
Contributor Author

cmb69 commented Feb 27, 2020

Thanks! Applied as 8654c32.

@cmb69 cmb69 closed this Feb 27, 2020
@cmb69 cmb69 deleted the cmb/64032 branch February 27, 2020 08:41
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

2 participants