cherry-pick from master #37274
This commit is contained in:
@ -564,6 +564,7 @@ public class SelectStmt extends QueryStmt {
|
||||
// remove excepted columns
|
||||
resultExprs.removeIf(expr -> exceptCols.contains(expr.toColumnLabel()));
|
||||
colLabels.removeIf(exceptCols::contains);
|
||||
originalExpr = new ArrayList<>(resultExprs);
|
||||
} else {
|
||||
if (needToSql) {
|
||||
originalExpr = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user