From 6440439e01105266c43c38c19094af18783703aa Mon Sep 17 00:00:00 2001 From: Rui Date: Sun, 17 Dec 2023 13:43:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8F=91=E5=B8=83=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wikis/en/Changelog.md | 12 +++++------- wikis/zh/Changelog.md | 16 ++++++---------- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/wikis/en/Changelog.md b/wikis/en/Changelog.md index 22afcd3e..eec3166a 100644 --- a/wikis/en/Changelog.md +++ b/wikis/en/Changelog.md @@ -1,5 +1,7 @@ ## Changelog +### 6.1.0 - 2023-12-16 + - Released version 6.1.0, PageHelper provides direct dependency on jsqlparser as intermediate interfaces, allowing default implementation replacement through SPI. - Upgraded jsqlparser version to 4.7, re-implemented order by, pagination, and count queries. @@ -13,7 +15,7 @@ - Changed static methods of OrderByParser to regular methods, preparing for future interface changes. - JSqlParser interface is no longer needed after JDK 8+, removed the interface, and marked the parameter in the documentation (_This parameter was used in the early stages to support special configuration for SQL Server_). - Compatible with jsqlparser 4.7 version. Rui 2023/12/3 15:15. + Compatible with jsqlparser 4.7 version. - Fixed maven-compiler-plugin version to remove warnings and improve build stability. qxo - Added .vscode to .gitignore for vscode IDE. qxo - Fixed bug https://github.com/pagehelper/Mybatis-PageHelper/issues/779. chenyuehui @@ -54,12 +56,8 @@ Here, the thread pool is bypassed through the API: ```java CCJSqlParser parser = CCJSqlParserUtil.newParser(statementReader); -parser. - -withSquareBracketQuotation(true); -return parser. - -Statement(); +parser.withSquareBracketQuotation(true); +return parser.Statement(); ``` The purpose of using a thread pool in JSqlParser is to prevent parsing timeouts. Therefore, if you have encountered diff --git a/wikis/zh/Changelog.md b/wikis/zh/Changelog.md index 2a2469f3..d9793dc6 100644 --- a/wikis/zh/Changelog.md +++ b/wikis/zh/Changelog.md @@ -10,7 +10,7 @@ - OrderByParser提取OrderBySqlParser接口,增加 orderBySqlParser 参数,可以覆盖默认实现 - OrderByParser静态方法改为普通方法,为后续改接口做准备 - jdk8+后不再需要JSqlParser接口,移除该接口,文档标记该参数(_该参数早期用于支持sqlserver特殊配置_) - 兼容jsqlparser4.7版本 Rui 2023/12/3 15:15 + 兼容jsqlparser4.7版本 - maven-compiler-plugin固定版本以去除警告,并增加构建稳定性 qxo - gitignore .vscode for vscode ide qxo - 修改bug https://github.com/pagehelper/Mybatis-PageHelper/issues/779 chenyuehui @@ -34,9 +34,9 @@ -com.github.pagehelper -sqlparser4.5 -6.1.0 + com.github.pagehelper + sqlparser4.5 + 6.1.0 ``` @@ -47,12 +47,8 @@ JSqlParser 默认解析 SQL 会使用临时创建的 `Executors.newSingleThreadE ```java CCJSqlParser parser = CCJSqlParserUtil.newParser(statementReader); -parser. - -withSquareBracketQuotation(true); -return parser. - -Statement(); +parser.withSquareBracketQuotation(true); +return parser.Statement(); ``` JSqlParser 使用线程池的目的是为了防止解析超时,因此如果你遇到过超时的情况,可以引入下面的依赖(通过SPI覆盖了默认实现,超时时间10秒):