Open lIIlIIlI opened 2 years ago
sharding-jdbc分表后使用seata,seata生成的操作表查询语句sharding-jdbc无法路由,因为生成的主键被括号包了起来,sharding-jdbc无法解析该字段
此处将主键单独使用括号包了起来
是否能取消生成的sql语句主键外的括号呢?比如该处语句变为:SELECT * FROM task_refresh_package_log WHERE id in ( (?) )
1.集成sharding-jdbc
看不到你的图片呀
修改了一下内容,可以看见图片了
你可以尝试用类覆盖的方式,改动下这个类的代码试试
谢谢,我这边已经通过这种改动了
Ⅰ. Issue Description
sharding-jdbc分表后使用seata,seata生成的操作表查询语句sharding-jdbc无法路由,因为生成的主键被括号包了起来,sharding-jdbc无法解析该字段
Ⅱ. Describe what happened
此处将主键单独使用括号包了起来
Ⅲ. Describe what you expected to happen
是否能取消生成的sql语句主键外的括号呢?比如该处语句变为:SELECT * FROM task_refresh_package_log WHERE id in ( (?) )
Ⅳ. How to reproduce it (as minimally and precisely as possible)
1.集成sharding-jdbc
Ⅵ. Environment: