question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

Question

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. image It has no problem when i use MySql connected directly. Thanks. #17888

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
github-actions[bot]commented, Oct 8, 2022

Hello , this issue has not received a reply for several days. This issue is supposed to be closed.

0reactions
strongduanmucommented, Oct 9, 2022

This issue has not been finished, so I will reopen it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MySQL 1064 Error: You have an error in your SQL syntax
The 1064 error displays any time you have an issue with your SQL syntax, and is often due to using reserved words, missing...
Read more >
Exception when you execute a query - SQL Server
When you use SSMS to run a SQL query that returns a large amount of data, you receive an error message that resembles...
Read more >
Common SQL syntax errors and how to resolve them
In this article, we are going to describe some of the most common SQL syntax errors, and explains how you can resolve these...
Read more >
SQL Keywords Reference - W3Schools
Keyword, Description. ADD, Adds a column in an existing table. ADD CONSTRAINT, Adds a constraint after a table is already created.
Read more >
SQL reference for query expressions used in ArcGIS
The SQL syntax you use within an expression differs depending on the data source. ... it needs to be stated, or the query...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found