taojintianxia commented on issue #7761:
URL: https://github.com/apache/shardingsphere/issues/7761#issuecomment-717827563
@jiang2015 hi there
after check the source code of `OracleDatabaseMetaDataDialectHandler` we
could find out that the handler implementation for Oracle is different than
MySQL like followings :
```java
@Override
public String getSchema(final Connection connection) {
try {
return
Optional.ofNullable(connection.getMetaData().getUserName()).map(String::toUpperCase).orElse(null);
} catch (final SQLException ignored) {
return null;
}
}
```
in your test case, you just mock the getSchema, but the schema for Oracle is
from userName in metadata. ^_^
----------------------------------------------------------------
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]