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/01/08 07:15:32 UTC

[GitHub] [shardingsphere] traceming2 opened a new issue #8949: Shardingproxy sctl is not usable

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:
users@infra.apache.org



[GitHub] [shardingsphere] traceming2 commented on issue #8949: Shardingproxy sctl is not usable

Posted by GitBox <gi...@apache.org>.
traceming2 commented on issue #8949:
URL: https://github.com/apache/shardingsphere/issues/8949#issuecomment-756615319


   no `set` after `sctl:hint`


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



[GitHub] [shardingsphere] traceming2 closed issue #8949: Shardingproxy sctl is not usable

Posted by GitBox <gi...@apache.org>.
traceming2 closed issue #8949:
URL: https://github.com/apache/shardingsphere/issues/8949


   


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



[GitHub] [shardingsphere] traceming2 closed issue #8949: Shardingproxy sctl is not usable

Posted by GitBox <gi...@apache.org>.
traceming2 closed issue #8949:
URL: https://github.com/apache/shardingsphere/issues/8949


   


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



[GitHub] [shardingsphere] traceming2 commented on issue #8949: Shardingproxy sctl is not usable

Posted by GitBox <gi...@apache.org>.
traceming2 commented on issue #8949:
URL: https://github.com/apache/shardingsphere/issues/8949#issuecomment-756615319


   no `set` after `sctl:hint`


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