We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
分表场景下,复用PreparedStatement对象 或者 使用batch方法
问题复现步骤:
PreparedStatement ps = shardingConnection.prepareStatement(.....) ... ... ps.execute(); ... ... ps.execute()
... ps.addBatch(); ... ... ps.addBatch(); ps.executeBatch();
期望的表现:
数据像日志预期的那样插入到指定的表
观察到的表现:
数据全插入了第一次路由到的表,后续的表不插入
Sharding-JDBC版本: [1.4.0] 操作系统及版本: [OSX]
The text was updated successfully, but these errors were encountered:
5efb561
fixed apache#199 Only sharding table conditions, reuse PreparedStatem…
95a61b2
…ent object cause data routing errors
赞一个~
Sorry, something went wrong.
No branches or pull requests
分表场景下,复用PreparedStatement对象 或者 使用batch方法
问题复现步骤:
期望的表现:
数据像日志预期的那样插入到指定的表
观察到的表现:
数据全插入了第一次路由到的表,后续的表不插入
Sharding-JDBC版本: [1.4.0]
操作系统及版本: [OSX]
The text was updated successfully, but these errors were encountered: