From 2b3a3c869d61f9f22b8901bdb8d0020b57745813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=9E=B8?= Date: Tue, 24 Dec 2024 15:40:52 +0800 Subject: [PATCH] Fix SQLStructExpr clone without datatype. --- .../main/java/com/alibaba/druid/sql/ast/expr/SQLStructExpr.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLStructExpr.java b/core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLStructExpr.java index 55d83a8dee..68833cfa94 100644 --- a/core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLStructExpr.java +++ b/core/src/main/java/com/alibaba/druid/sql/ast/expr/SQLStructExpr.java @@ -62,6 +62,7 @@ public SQLStructExpr clone() { } protected void cloneTo(SQLStructExpr x) { + x.dataType = this.dataType.clone(); for (SQLAliasedExpr item : items) { x.addItem(item.clone()); }