kimmking edited a comment on issue #4014: Not support JDBC getCatalog
URL: 
https://github.com/apache/incubator-shardingsphere/issues/4014#issuecomment-575965787
 
 
   @shalousun  Actually, mysql&oracle doesn’t support catalog. 
   
   In an abstract Database model, a db instance contains several catalogs, each 
catalog contains several schema, every schema have many tables/views and other 
objects.Then we used to use Database in a specified case instead of the two 
concepts: catalog&schema. In mysql jdbc driver, the method 
connection.getCatalog will return databaseName string.
   
   We can use null or databaseName(mysql)/userName(oracle) instead of catalog 
in many methods like your above codes.
   
   Further more, sharding jdbc/proxy can wrap and route a logic database to 
more than one database, so we can't decide which db name should be returned to 
caller. So, then you will know as a result, sharding jdbc/proxy can't support 
the feature till now.

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


With regards,
Apache Git Services

Reply via email to