-
Notifications
You must be signed in to change notification settings - Fork 86
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
VIVO-1478 mysql driver throws exception #69
VIVO-1478 mysql driver throws exception #69
Conversation
…onAttributeOption. Use the latest MySQL driver.
url += "&useServerPrepStmts=true"; | ||
} | ||
if (!urlLwr.contains("servertimezone")) { | ||
url += "serverTimezone=UTC"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs the ampersand at the start to separate the additional parameter.
(facepalm) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per developer call discussion today, switch to using mysql-connector-java version 5.1.46.
Approved |
Thank you for submitting a pull request! Title this pull request with a brief description of what the pull request fixes/improves/changes. Please describe the pull request in detail using the template below.
JIRA Issue: https://jira.duraspace.org/browse/VIVO-1478
What does this pull request do?
Upgrading to a newer MySQL driver caused an exception unless
serverTimezone
was specified in the JDBC URL. This request causes VIVO to specifyserverTimeZone=UTC
as a default option on the URL. It also uses the most recent version of the MySQL driver.What's new?
How should this be tested?
runtime.properties
VitroConnection.DataSource.url = jdbc:mysql://localhost/vitrodb?useUnicode=yes
Interested parties
@VIVO-project/vivo-committers