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

Do not return hard error on unparsable version in HTTP proto #975

Merged
merged 1 commit into from
Apr 24, 2023

Conversation

hexchain
Copy link
Contributor

Summary

Currently, if the ClickHouse server returns a version number that cannot be parsed, clickhouse-go returns an error and refuses to continue. This change makes clickhouse-go more relaxed when the server has a non-regular non-official version: it treats unparseable parts as 0 in the version number and still works after printing a warning.

@CLAassistant
Copy link

CLAassistant commented Apr 19, 2023

CLA assistant check
All committers have signed the CLA.

@jkaflik jkaflik self-requested a review April 19, 2023 18:36
Copy link
Contributor

@jkaflik jkaflik left a comment

Choose a reason for hiding this comment

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

Thanks. Looks good.

@jkaflik jkaflik changed the title Do not return hard error on unparsable version Do not return hard error on unparsable version in HTTP proto Apr 24, 2023
@jkaflik jkaflik merged commit 2069a7c into ClickHouse:main Apr 24, 2023
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