From d7550ccbac67b9f62bd59a30668c1325ff7f554b Mon Sep 17 00:00:00 2001 From: jianglianggithub <2013148074@qq.com> Date: Sun, 3 Nov 2024 21:06:35 +0800 Subject: [PATCH] fix issues:#6209 --- .../druid/sql/repository/SchemaResolveVisitorFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java b/core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java index 4544d402bc..963673c448 100644 --- a/core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java +++ b/core/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java @@ -1692,7 +1692,7 @@ static void extractColumns(SchemaResolveVisitor visitor, for (SQLSelectItem subSelectItem : subSelectList) { String alias = subSelectItem.computeAlias(); - columns.add(new SQLSelectItem(new SQLIdentifierExpr(alias))); + columns.add(new SQLSelectItem(new SQLPropertyExpr(ownerName, alias))); } } else if (from instanceof SQLUnionQueryTableSource) { SQLSelectQueryBlock firstQueryBlock = ((SQLUnionQueryTableSource) from).getUnion().getFirstQueryBlock();