You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/05/13 03:03:02 UTC

[GitHub] [shardingsphere] zuoyedalaohu commented on issue #10301: sharding-jdbc(4.1.1)String index out of range: 0

zuoyedalaohu commented on issue #10301:
URL: https://github.com/apache/shardingsphere/issues/10301#issuecomment-840255255


   说明太少?异常足够说明一切,这个mybatis的动态sql 引入sharding-jdbc 后解析sql通过不了,问题点在sql('' as open_bank, '' as account_no )java 代码:SQLUtil.getParenthesesOffset(SQLUtil.java:98)  string值 '' charAt 0 异常,sql 改成  null as open_bank, null as account_no 该处问题通过;
   #10300 问题 不一样, 它是sql有分页参数,带上参数设置分页参数值时sharding-jdbc  位置定位错了,把第三个参数D00193(String) 当成分页参数用了,原因应该还是出在sql解析那里,有union all 的 sql解析 获取元数据 只分析了第一个子sql,后面分页参数理所当然就加在了后面,问题你们可以不用解决了,sharding-jdbc 已经从我候选方案中剔除了,徒有虚名,_zero 老low了_


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org