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
The Bug of Jdbc3KeyGenerator when use DB2 database and insertBatch Method #1288
Comments
Hi @hepengju , As you didn't post how to reproduce the problem nor what actually happened, I assumed that you were trying to retrieve generated keys and getting an exception. DB2 indeed returns Please let me know if I am misunderstanding something. [1] Verified with this JDBC app. |
Hi @harawata , Your code accurately described my issue.
|
Hi @hepengju , So, you do NOT need to assign generated keys to the parameter objects? |
Hi @harawata, |
|
Hi @harawata , Yes, |
Hi @hepengju ,
The exception is thrown because you or MyBatis-Plus sets Note that
But DB2 does support generatedKeys. |
Hi @hepengju , I noticed that the issue you reported to MyBatis-Plus was closed. |
@harawata
|
That's unfortunate... I hope mybatis-plus team finds a better solution soon. I'll close this as I think MyBatis itself provides a way for users to configure this behavior already. |
Environment:
The text was updated successfully, but these errors were encountered: