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

SQL-2423: correctly report db version #300

Open
wants to merge 5 commits into
base: on-prem-eap
Choose a base branch
from

Conversation

terakilobyte
Copy link
Member

No description provided.

Copy link

There is an existing patch(es) for this commit SHA:

Please note that the status that is posted is not in the context of this PR but rather the (latest) existing patch and that may affect some tests that may depend on the particular PR. If your tests do not rely on any PR-specific values (like base or head branch name) then your tests will report the same status. If you would like a patch to run in the context of this PR and abort the other(s), comment 'evergreen retry'.

Copy link
Collaborator

@pmeredit pmeredit left a comment

Choose a reason for hiding this comment

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

LGTM other than that it may throw exceptions

@@ -581,6 +585,9 @@ public String getDatabaseProductVersion() throws SQLException {
return serverVersion;
}
serverVersion = conn.getServerVersion();
String[] versionParts = serverVersion.split("\\.");
serverMajorVersion = parseInt(versionParts[0]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you don't check the length, this could throw an exception. Not sure how much we care.

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.

2 participants