chenxk removed a comment on issue #10419:
URL: 
https://github.com/apache/shardingsphere/issues/10419#issuecomment-846893616


   I also solved it like this!
   
   `/**
        * Get schema.
        *
        * @param connection connection
        * @param databaseType database type
        * @return schema
        */
       public static String getSchema(final Connection connection, final String 
databaseType) {
           String result = null;
           try {
               if ("Oracle".equals(databaseType)) {
                   return connection.getMetaData().getUserName();
               }
               result = connection.getSchema();
           } catch (final SQLException ignore) {
           }
           return result;
       }`
   


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


Reply via email to