You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "yuyee-qi (via GitHub)" <gi...@apache.org> on 2023/04/09 15:53:16 UTC

[GitHub] [shardingsphere] yuyee-qi opened a new issue, #25073: When using

yuyee-qi opened a new issue, #25073:
URL: https://github.com/apache/shardingsphere/issues/25073

   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - 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**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Which version of ShardingSphere did you use?
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ### Expected behavior
   
   ### Actual behavior
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] When using liquibase, JdbcConnection connot get the database catalog correctly [shardingsphere]

Posted by "wanghongzhou (via GitHub)" <gi...@apache.org>.
wanghongzhou commented on issue #25073:
URL: https://github.com/apache/shardingsphere/issues/25073#issuecomment-1769868171

   这个BUG [22876](https://github.com/apache/shardingsphere/issues/22876) 也是因为这个原因导致的,当hibernate的ddl-auto设置为update时,每次启动时会去维护表,因为catalong为空导致检测不到表,于是去创建表,出现表存在的异常


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] When using liquibase, JdbcConnection connot get the database catalog correctly [shardingsphere]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #25073:
URL: https://github.com/apache/shardingsphere/issues/25073#issuecomment-1973839216

   There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] yuyee-qi commented on issue #25073: When using

Posted by "yuyee-qi (via GitHub)" <gi...@apache.org>.
yuyee-qi commented on issue #25073:
URL: https://github.com/apache/shardingsphere/issues/25073#issuecomment-1501165537

   I use the latest version 5.3.2 of ShardingSphere-JDBC.
   
   Before using it, I can start my SpringBoot project repeatedly, but now, I just can do once. When I start my project for the second time, it will fail because of repeated creation of liquibase's tables.
   
   From the debug call stack, there is only a difference when using it before and after. The JdbcConnection cannot obtain catalog after using it. 
   
   So I think there is something wrong with this code in calss **org.apache.shardingsphere.driver.jdbc.adapter.AbstractConnectionAdapter**, it doesnot store and return the catalog correctly.
   
       @Override
       public final String getCatalog() {
           return null;
       }
       @Override
       public final void setCatalog(final String catalog) {
       }
   
   I wonder why it returns null directly instead of saving is as a field in the abstract class.


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] yuyee-qi commented on issue #25073: When using liquibase, JdbcConnection connot get the database catalog correctly

Posted by "yuyee-qi (via GitHub)" <gi...@apache.org>.
yuyee-qi commented on issue #25073:
URL: https://github.com/apache/shardingsphere/issues/25073#issuecomment-1508584273

   I reproduce this exception, the demo in my demo project **https://github.com/yuyee-qi/shardingsphere-liquibase-demo**


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] RaigorJiang commented on issue #25073: When using liquibase, JdbcConnection connot get the database catalog correctly

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #25073:
URL: https://github.com/apache/shardingsphere/issues/25073#issuecomment-1502776496

   @yuyee-qi 
   It seems that you need to get the catalog from ShardingSphereConnection, can you provide a demo that reproduces the problem?


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org