dotnetcore / dotnetcore/FreeSql
使用分页函数page 时,pageSize = int.MaxValue 会出现值溢出
Open
- Dominant language
- C#
- Stars
- 4.4k
- Forks
- 910
- PR merge metrics
- No merged PRs in 30d
Description
#### 问题描述及重现代码:
如果在分页时,使用 `.Page(1,int.MaxValue)` ,DamengSelect.ToSqlStatic 执行 _limit + 1 会出现值溢出
```c#
.Page(1,int.maxvalue)
```
#### 数据库版本
dameng v8
#### 安装的Nuget包
dm.dmprovider/8.3.1.28188
#### .net framework/. net core? 及具体版本
. net core v9
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in DamengSelect.ToSqlStatic, following the pagination path used by .Page(1, int.MaxValue). Reproduce the overflow with Dameng v8 and dm.dmprovider 8.3.1.28188 on .NET 9, then verify that pagination no longer overflows and the generated SQL remains valid.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100