when i execute select statement, it cause an error: This version of ShardingSphere-Proxy doesn't yet support this SQL. 'You have an error in your SQL syntax'
See original GitHub issueQuestion
I have a problem when i execute select statement. I use ShardingSphere-Proxy, version is 5.1.2 and Mysql JDBC Driver is 8.0.28. The error is as follows. It similar to another problem #17888 . I think it may be caused by PrepareStatement.
Error querying database. Cause: java.sql.SQLSyntaxErrorException: This version of ShardingSphere-Proxy doesn't yet support this SQL. 'You have an error in your SQL syntax' The error may exist in file [D:\apache-tomcat-9.0.58\webapps\service_war\WEB-INF\classes\mapper\AcademicMapper.xml] The error may involve com.dao.AcademicDao.queryAcademicByMingcheng-Inline The error occurred while setting parameters SQL: SELECT knowledgename,knowledgecontent FROM Academic WHERE knowledgename like "%"?"%" Cause: java.sql.SQLSyntaxErrorException: This version of ShardingSphere-Proxy doesn't yet support this SQL. 'You have an error in your SQL syntax'; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: This version of ShardingSphere-Proxy doesn't yet support this SQL. 'You have an error in your SQL syntax'
The select statement in my AcademicMapper.xml show in next picture.
It has no problem when i use MySql connected directly.
Thanks.
#17888
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Hello , this issue has not received a reply for several days. This issue is supposed to be closed.
This issue has not been finished, so I will reopen it.