【8.1.4】修正max sort语法兼容pgsql

dev-8.1.9 v8.1.4
fengshuonan 2024-04-09 16:06:38 +08:00
parent ba1878933b
commit 863604986c
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ public class DbOperatorImpl implements DbOperatorApi {
String tempFieldName = "maxSort"; String tempFieldName = "maxSort";
String sqlTemplate = "select max({}) as {} from {}"; String sqlTemplate = "select max({}) as \"{}\" from {}";
String sql = StrUtil.format(sqlTemplate, fieldName, tempFieldName, tableName); String sql = StrUtil.format(sqlTemplate, fieldName, tempFieldName, tableName);
Map<String, Object> oneResult = SqlRunner.db().selectOne(sql); Map<String, Object> oneResult = SqlRunner.db().selectOne(sql);