strongduanmu commented on a change in pull request #12372:
URL: https://github.com/apache/shardingsphere/pull/12372#discussion_r708200041



##########
File path: 
shardingsphere-infra/shardingsphere-infra-binder/src/main/java/org/apache/shardingsphere/infra/binder/statement/SQLStatementContext.java
##########
@@ -18,14 +18,15 @@
 package org.apache.shardingsphere.infra.binder.statement;
 
 import org.apache.shardingsphere.infra.binder.segment.table.TablesContext;
+import org.apache.shardingsphere.infra.binder.type.SchemaAvailable;
 import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement;
 
 /**
  * SQL statement context.
  * 
  * @param <T> type of SQL statement
  */
-public interface SQLStatementContext<T extends SQLStatement> {
+public interface SQLStatementContext<T extends SQLStatement> extends 
SchemaAvailable {

Review comment:
       @cheese8 Inheriting the SchemaAvailable interface on SQLStatementContext 
will cause all StatementContext to be affected. A better way is to implement 
the SchemaAvailable interface on the DML statement Context.




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