Skip to content

Commit

Permalink
更新发布日志
Browse files Browse the repository at this point in the history
  • Loading branch information
pagehelper committed Dec 17, 2023
1 parent 158f78e commit 6440439
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
12 changes: 5 additions & 7 deletions wikis/en/Changelog.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
16 changes: 6 additions & 10 deletions wikis/zh/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -34,9 +34,9 @@
</exclusions>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>sqlparser4.5</artifactId>
<version>6.1.0</version>
<groupId>com.github.pagehelper</groupId>
<artifactId>sqlparser4.5</artifactId>
<version>6.1.0</version>
</dependency>
```

Expand All @@ -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秒):
Expand Down

0 comments on commit 6440439

Please sign in to comment.