You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/05/06 14:17:44 UTC
[GitHub] [shardingsphere] RaigorJiang commented on a diff in pull request #17397: Rename SchemaRequiredBackendHandler to DatabaseRequiredBackendHandler.
RaigorJiang commented on code in PR #17397:
URL: https://github.com/apache/shardingsphere/pull/17397#discussion_r866874828
##########
shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/text/DatabaseRequiredBackendHandler.java:
##########
@@ -58,8 +59,8 @@ private String getDatabaseName(final ConnectionSession connectionSession, final
return schemaFromSQL.isPresent() ? schemaFromSQL.get().getIdentifier().getValue() : connectionSession.getDatabaseName();
}
- private void checkDatabase(final String databaseName) {
- if (null == databaseName) {
+ private void checkDatabaseName(final String databaseName) {
+ if (Strings.isNullOrEmpty(databaseName)) {
Review Comment:
Hi @yx9o
Will `databaseName` be an empty string?
--
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