traceming2 opened a new issue #8949:
URL: https://github.com/apache/shardingsphere/issues/8949
The sctl commands cannot be processed by JDBC.
```
Connection conn = dataSource.getConnection();
Statement stmt = conn.createStatement();
stmt.execute("sctl:hint set addDatabaseShardingValue my_table=0");
stmt.execute("sctl:hint set addTableShardingValue my_table=0");
```
```
java.sql.SQLException: 1Could not support sctl type [sctl:hint set
addDatabaseShardingValue account_tab_hinted=0].
at
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
at
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
at
com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at
com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:764)
at com.mysql.cj.jdbc.StatementImpl.execute(StatementImpl.java:648)
at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:95)
at
com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)
```
----------------------------------------------------------------
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:
[email protected]