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 2020/07/13 03:05:38 UTC

[GitHub] [shardingsphere] leezhip opened a new issue #6331: how to modify sql_mode

leezhip opened a new issue #6331:
URL: https://github.com/apache/shardingsphere/issues/6331


   ## Question
   
   **For English only**, other languages will not accept.
   
   Before asking a question, make sure you have:
   
   - Googled your question.
   - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more details. 
   If no response anymore and we cannot reproduce it on current information, we will **close it**.
   
   
   ![image](https://user-images.githubusercontent.com/20160202/87266816-b7096080-c4f8-11ea-8b56-25eb63a6ec2a.png)
   


----------------------------------------------------------------
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] kimmking commented on issue #6331: how to modify sql_mode

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


   What's your concrete error/question here?


----------------------------------------------------------------
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] tristaZero commented on issue #6331: how to modify sql_mode

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


   > I tried to use it jdbcCompliantTruncation ,but it not work
   
   If you use regular JDBC, does it work? AFAIK, ShardingJDBC creates dataSource by means of `snakeyaml`. In general, it will not ignore any of the properties from user-defined `jdbcUrl`.
   Do you think there is any JDBC interface, like `getAutoCommit()` can check whether this property and other properties take effect?


----------------------------------------------------------------
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] leezhip commented on issue #6331: how to modify sql_mode

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


   Sorry, I found the problem. It's the mode initialized by the caller. thanks!


----------------------------------------------------------------
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] leezhip closed issue #6331: how to modify sql_mode

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


   


----------------------------------------------------------------
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] leezhip commented on issue #6331: how to modify sql_mode

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


   The new connection will be renewed "set session sql_mode"
   Because of the database sql_mode are different, need to be consistent。
   I tried to use it jdbcCompliantTruncation ,but it not work 
   this my jdbcUrl
   jdbcUrl: jdbc:mysql://127.0.0.1:3306/db?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&jdbcCompliantTruncation=false


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