mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-06 16:48:24 +08:00
fixed: FunctionQueryColumn.as is not correct.
This commit is contained in:
parent
1e03a18e30
commit
0f0fb9d7ee
@ -59,4 +59,10 @@ public class FunctionQueryColumn extends QueryColumn {
|
|||||||
String sql = column.toSelectSql(queryTables, dialect);
|
String sql = column.toSelectSql(queryTables, dialect);
|
||||||
return StringUtil.isBlank(sql) ? "" : fnName + "(" + sql + ")" + WrapperUtil.buildAsAlias(alias);
|
return StringUtil.isBlank(sql) ? "" : fnName + "(" + sql + ")" + WrapperUtil.buildAsAlias(alias);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public QueryColumn as(String alias) {
|
||||||
|
this.alias = alias;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user