strongduanmu commented on code in PR #18718:
URL: https://github.com/apache/shardingsphere/pull/18718#discussion_r910604621
##########
shardingsphere-infra/shardingsphere-infra-binder/src/main/java/org/apache/shardingsphere/infra/binder/statement/dml/InsertStatementContext.java:
##########
@@ -98,6 +98,9 @@ public InsertStatementContext(final Map<String,
ShardingSphereDatabase> database
private ShardingSphereSchema getSchema(final Map<String,
ShardingSphereDatabase> databases, final String defaultDatabaseName) {
String databaseName =
tablesContext.getDatabaseName().orElse(defaultDatabaseName);
+ if (null == databaseName) {
Review Comment:
@zjcnb In what scenario will databaseName be empty?
--
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]