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

solution: MySql 5.1.47 Time type error #1578

Open
1 task
zjinlei opened this issue Sep 3, 2019 · 5 comments
Open
1 task

solution: MySql 5.1.47 Time type error #1578

zjinlei opened this issue Sep 3, 2019 · 5 comments
Labels
solution/MySQL Record the solution to the MySQL problem

Comments

@zjinlei
Copy link
Contributor

zjinlei commented Sep 3, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

Ⅰ. Issue Description

When using the mysql driver version 5.1.47, there are a variety of error cases that integrate seata, which can be solved by modifying the version (for example, using 5.1.39).

Case 1.Persistent Object contains LocalDateTime, use Mybatisplus to insert.
image

Case 2.Persistent Object contains java.util.Date, but seata is called setTimestamp method.
image
image

Ⅱ. Describe what happened

If there is an exception, please attach the exception trace:

Just paste your stack trace here!

Ⅲ. Describe what you expected to happen

Ⅳ. How to reproduce it (as minimally and precisely as possible)

  1. xxx
  2. xxx
  3. xxx

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • JDK version : 1.8
  • OS :
  • seata: 0.8.0
    -mysql: 5.1.47
@zjinlei zjinlei added the solution/MySQL Record the solution to the MySQL problem label Sep 3, 2019
@fescar-robot fescar-robot added DB: MySQL Relate to seata MySQL type: bug Category issues or prs related to bug. labels Sep 3, 2019
@zjinlei zjinlei removed DB: MySQL Relate to seata MySQL type: bug Category issues or prs related to bug. labels Sep 3, 2019
@apache apache deleted a comment from fescar-robot Sep 3, 2019
@zjinlei zjinlei changed the title solution: MySql Time type error solution: MySql 5.1.47 Time type error Sep 7, 2019
@fescar-robot fescar-robot added DB: MySQL Relate to seata MySQL type: bug Category issues or prs related to bug. labels Sep 7, 2019
@zjinlei zjinlei removed DB: MySQL Relate to seata MySQL type: bug Category issues or prs related to bug. labels Sep 7, 2019
@wslongchen
Copy link

So will it update the plan in later versions?

@zjinlei
Copy link
Contributor Author

zjinlei commented Sep 18, 2019

@wslongchen Recommended to replace the mysql version

@lxy1693
Copy link

lxy1693 commented Mar 4, 2020

多谢提供方案,困扰了很久的问题

@yoyoyoga
Copy link

using mysql-connector-java 5.1.39,garbled characters appear when reading database field type as json format data, be careful

@zhuangzhuangdashen
Copy link

so it's a issue about seata , or a mysql connector issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solution/MySQL Record the solution to the MySQL problem
Projects
None yet
Development

No branches or pull requests

6 participants