-
Notifications
You must be signed in to change notification settings - Fork 74
[MySQL] set useLegacyDatetimeCode=false by default. #103
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
Comments
I think that we need to change the default value with |
Fix embulk#103 The `useLegacyDatetimeCode=false` option return properly time if server and client timezone is difference.
Do we need to update mysql-connector-java, if https://dev.mysql.com/doc/relnotes/connector-j/5.1/en/news-5-1-35.html
|
I create a summary and proposed PR #104.
If both answers are YES, we need the following works.
Change test codeSome tests failed due to timestamp comparison.
Care
|
@hiroyuki-sato Thank you for moving forward this issue. I think that we need to discuss about how we should do first. And let's discuss about I'm OK to set If we set |
@hiroyuki-sato @muga @frsyuki
|
Follow-up #106. It merged into master. |
I reopened this issue. |
For future discussion about
embulk-input-mysql
.It seems better to set
useLegacyDatetimeCode=false
by default.For example, If server use UTC timezone, and client use 'Asia/Tokyo',
a user need to set
options: { useLegacyDatetimeCode: false }
or similar explicitly.https://dev.mysql.com/doc/connector-j/5.1/en/connector-j-reference-configuration-properties.html
It's not convenient.
The following references are written in Japanese.
http://qiita.com/katsuyan/items/f22dc5a86522ba3c5652
https://gist.github.com/hiroyuki-sato/dc59e8d45778dac0e0ee417bb27d57a1
http://vividcode.hatenablog.com/entry/mysql/connector-j-5.1-use-legacy-datetime-code
The text was updated successfully, but these errors were encountered: