zjcnb commented on code in PR #18718:
URL: https://github.com/apache/shardingsphere/pull/18718#discussion_r910647222


##########
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:
   Auto send the `select verison()` command after connect Proxy, 
the`databaseName` are empty At this time.



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

Reply via email to