sxlArtless opened a new issue, #21525: URL: https://github.com/apache/shardingsphere/issues/21525
In the integration of shardingsphere4.1.1 framework version and mybatis plus3.3.1, I only used the read-write separation function but did not use sharding. When addBatch added data, there was a return of self-increment primary key id, but when it was upgraded to 5.1.1 framework version, Shardingsphere5.1.1 addBatch method did not return to the primary key id value, because the ShardingSpherePreparedStatement addBatch intercept method, need to use keyGenerated strategy, You can disable the custom policy so that the addBatch method returns the primary key id. for exmaple:   Then in version 4.1.1:  At present, I only use the read and write separation function of ShardingSphere, and have not used ShardingSphere sharding function. ShardingSphere5.1.1 How do I normally return the value of the primary key id? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
