You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: java.lang.ClassCastException: Cannot cast net.sf.jsqlparser.statement.truncate.Truncate to net.sf.jsqlparser.statement.select.Select at java.base/java.lang.Class.cast(Class.java:3605) ~[na:na]
at org.springframework.data.jpa.repository.query.JSqlParserQueryEnhancer.parseSelectStatement(JSqlParserQueryEnhancer.java:480) ~[spring-data-jpa-2.7.13.jar:2.7.13]
at org.springframework.data.jpa.repository.query.JSqlParserQueryEnhancer.parseSelectStatement(JSqlParserQueryEnhancer.java:493) ~[spring-data-jpa-2.7.13.jar:2.7.13]
The text was updated successfully, but these errors were encountered:
mp911de
changed the title
An error occurred when @Query(value="TRUNCATE TABLE ...", nativeQuery = true)@Query(value="TRUNCATE TABLE ...", nativeQuery = true) fails with ClassCastExceptionJun 26, 2023
I'm upgrading spring boot 2.7.13 from 2.4.0.
When executing @query(value="TRUNCATE TABLE ...", nativeQuery=true), occurred below error.
Can you add a truncate table query like #2593 ?
The text was updated successfully, but these errors were encountered: