- 基于jdk8适配,6.0开始不支持jdk6和7,如果有需要可以使用5.x版本
- 增加异步count支持,全局配置
asyncCount
,默认false
,单次设置:PageHelper.startPage(1, 10).enableAsyncCount()
;
异步使用独立连接(事务)查询,有增删改操作影响查询时不适合开启异步查询。closed #334 - JSqlParser默认开启
parser.withSquareBracketQuotation(true)
,支持 SqlServer[]
- feat: 在
PageInfo
类中新增了用以进行数据对象转换的方法<E> PageInfo<E> convert(Page.Function<T, E> function)
by
codeke CountSqlParser
改为接口,允许通过countSqlParser
参数替换为自己的实现,支持 #772dialectAlias
支持简化配置,例如dm=oracle;oracle=oracle9i
,直接引用现在的缩写,不用写类全名countColumn
添加注入检测,fixed #686- 增加
PageParam
类,不内嵌对象(会影响使用),如果想用可以继承该对象,closed #562 - 所有异常信息改为英文提示
- 放开
setLocalPage
,支持 #771 - 解决
sqlserver
带union sql解析时处理order by错误的问题,fixed #768 - 优化total逻辑,解决指定不分页查询,同时指定order by时无效的问题,fixed #641
- 修改 dialect 实例化逻辑,保证类完成配置后使用,fixed #742
dialectAliasMap
改为LinkedHashMap
,可以按配置顺序进行匹配,fixed #758- 行云数据库分页BUG修复 by maimaitiyaer_bonc
- Based on JDK 8 adaptation, JDK 6 and 7 are not supported from 6.0 onwards, and 5.x versions can be used if necessary
- Added asynchronous count support, configure
asyncCount
globally, defaultfalse
,single activation
byPageHelper.startPage(1, 10).enableAsyncCount()
;
Asynchronous queries are performed using independent connections (transactions),
and it is not suitable to enable asynchronous queries when the query is affected by addition, deletion, and
modification operations. closed #334 - JSqlParser opens
parser.withSquareBracketQuotation(true)
by default and supports SqlServer[]
- feat: A new method for data object conversion has been added to the
PageInfo
,
method:<E> PageInfo<E> convert(Page.Function<T, E> function)
by codeke CountSqlParser
is changed to an interface, allowing thecountSqlParser
parameter to be replaced with your own
implementation, which is supported #772dialectAlias
supports simplified configurations, e.g.dm=oracle;oracle=oracle9i
, a direct reference to the current
abbreviation, without writing the full name of the classcountColumn
add injection detection, fixed #686- Add the
PageParam
class, which does not embed objects (will affect the use), if you want to use, you can inherit the
object,closed #562 - All exception messages have been changed to English
- open
setLocalPage
method, support #771 - Solve the problem of handling order by error when
sqlserver
with union sql parsing,fixed #768 - Optimized the total logic to solve the problem that the query is not pagination and the order by is invalid. fixed
#641 - Modify the dialect instantiation logic to ensure that the class is used after the configuration is completed. fixed
#742 dialectAliasMap
change toLinkedHashMap
type, support matching in configuration order, fixed #758- fixed the pagination bug of xingyun database by maimaitiyaer_bonc