mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
fixed: oracle下查询报错 close #I6Z7K4
This commit is contained in:
parent
33dc9cc594
commit
d2df201304
@ -307,7 +307,6 @@ public class CommonsDialectImpl implements IDialect {
|
||||
sqlBuilder.append("*");
|
||||
} else {
|
||||
int index = 0;
|
||||
|
||||
for (QueryColumn selectColumn : selectColumns) {
|
||||
String selectColumnSql = CPI.toSelectSql(selectColumn, queryTables, this);
|
||||
sqlBuilder.append(selectColumnSql);
|
||||
|
||||
@ -17,6 +17,7 @@ package com.mybatisflex.core.dialect.impl;
|
||||
|
||||
import com.mybatisflex.core.dialect.KeywordWrap;
|
||||
import com.mybatisflex.core.dialect.LimitOffsetProcesser;
|
||||
import com.mybatisflex.core.util.StringUtil;
|
||||
|
||||
public class OracleDialect extends CommonsDialectImpl {
|
||||
|
||||
@ -43,6 +44,9 @@ public class OracleDialect extends CommonsDialectImpl {
|
||||
|
||||
@Override
|
||||
public String wrap(String keyword) {
|
||||
return super.wrap(toUpperCase ? keyword.toUpperCase():keyword);
|
||||
if (StringUtil.isNotBlank(keyword)) {
|
||||
return super.wrap(toUpperCase ? keyword.toUpperCase() : keyword);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user