mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 09:08:24 +08:00
!346 修复需要圆括号包装的查询使用别名时添加了两次”AS“的问题
Merge pull request !346 from cnscoo/bug-double-as
This commit is contained in:
commit
70ea74cffe
@ -148,7 +148,7 @@ class WrapperUtil {
|
||||
}
|
||||
|
||||
static String withAlias(String sql, String alias, IDialect dialect) {
|
||||
return SqlConsts.BRACKET_LEFT + sql + SqlConsts.BRACKET_RIGHT + getAsKeyWord(dialect) + buildColumnAlias(alias, dialect);
|
||||
return SqlConsts.BRACKET_LEFT + sql + SqlConsts.BRACKET_RIGHT + buildColumnAlias(alias, dialect);
|
||||
}
|
||||
|
||||
static String buildAlias(String alias, IDialect dialect) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user