zjcnb commented on code in PR #18718:
URL: https://github.com/apache/shardingsphere/pull/18718#discussion_r910889110
##########
shardingsphere-infra/shardingsphere-infra-binder/src/main/java/org/apache/shardingsphere/infra/binder/statement/dml/SelectStatementContext.java:
##########
@@ -128,15 +128,17 @@ private Map<Integer, SelectStatementContext>
createSubqueryContexts(final Map<St
}
private Map<String, ShardingSphereSchema> getSchemas(final Map<String,
ShardingSphereDatabase> databases, final String databaseName) {
- ShardingSphereDatabase database = databases.get(databaseName);
- if (null == database) {
+ if (null == databaseName) {
if (tablesContext.getTables().isEmpty()) {
return Collections.emptyMap();
} else {
- throw new DatabaseNotExistedException(databaseName);
+ throw new DatabaseNotExistedException(null);
Review Comment:
Yeah, i agree. I will adjustment it
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]