You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by ch...@apache.org on 2024/07/22 07:38:07 UTC

(shardingsphere) branch master updated: Minor refactor for SelectStatementContext#isAllSubqueryTableInJoinTable (#32225)

This is an automated email from the ASF dual-hosted git repository.

chengzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 45b69b4d0d2 Minor refactor for SelectStatementContext#isAllSubqueryTableInJoinTable (#32225)
45b69b4d0d2 is described below

commit 45b69b4d0d249f31b01ce963d82debb7de751da4
Author: Zhengqiang Duan <du...@apache.org>
AuthorDate: Mon Jul 22 15:38:01 2024 +0800

    Minor refactor for SelectStatementContext#isAllSubqueryTableInJoinTable (#32225)
---
 .../infra/binder/context/statement/dml/SelectStatementContext.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/context/statement/dml/SelectStatementContext.java b/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/context/statement/dml/SelectStatementContext.java
index e08be51c951..fffa8335969 100644
--- a/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/context/statement/dml/SelectStatementContext.java
+++ b/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/context/statement/dml/SelectStatementContext.java
@@ -412,7 +412,7 @@ public final class SelectStatementContext extends CommonSQLStatementContext impl
     
     private boolean isAllSubqueryTableInJoinTable(final TableSegment tableSegment) {
         if (tableSegment instanceof JoinTableSegment) {
-            return isAllSubqueryTableInJoinTable(((JoinTableSegment) tableSegment).getLeft()) && isAllSubqueryTableInJoinTable(((JoinTableSegment) tableSegment).getRight());
+            return isAllSubqueryTable(((JoinTableSegment) tableSegment).getLeft()) && isAllSubqueryTable(((JoinTableSegment) tableSegment).getRight());
         }
         return false;
     }