mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
8d5851a81f
commit
eff36d7ecf
@ -290,8 +290,8 @@ public class DialectRunner implements Serializable {
|
|||||||
checkConn(conn);
|
checkConn(conn);
|
||||||
|
|
||||||
String selectSql = sqlBuilder.build();
|
String selectSql = sqlBuilder.build();
|
||||||
// 去除order by 子句
|
// 去除最后的order by 子句
|
||||||
final int orderByIndex = StrUtil.indexOfIgnoreCase(selectSql, " order by");
|
final int orderByIndex = StrUtil.lastIndexOfIgnoreCase(selectSql, " order by");
|
||||||
if (orderByIndex > 0) {
|
if (orderByIndex > 0) {
|
||||||
selectSql = StrUtil.subPre(selectSql, orderByIndex);
|
selectSql = StrUtil.subPre(selectSql, orderByIndex);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user