Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

archery limit 分页查询失效 #2566

Closed
howieqdd opened this issue Apr 8, 2024 · 5 comments
Closed

archery limit 分页查询失效 #2566

howieqdd opened this issue Apr 8, 2024 · 5 comments

Comments

@howieqdd
Copy link

howieqdd commented Apr 8, 2024

重现步骤

select * from table limit 21,20 不生效 应该展示的是第21条开始的后20条数据,但是返回的还是1-20条数据

预期外的结果

select * from table limit 21,20 不生效 应该展示的是第21条开始的后20条数据,但是返回的还是1-20条数据

日志文本

No response

版本

v1.7.9

部署方式

K8S

是否还有其他可以辅助定位问题的信息?比如数据库版本等

No response

@feiazifeiazi
Copy link
Contributor

你的sql需要加order by排序。
你在数据库直接执行看看结果是咋样的。

@howieqdd
Copy link
Author

你的sql需要加order by排序。 你在数据库直接执行看看结果是咋样的。

sql 中是带order by 的,执行出来的结果是一样的

@te87037
Copy link
Contributor

te87037 commented Apr 11, 2024

你的sql需要加order by排序。 你在数据库直接执行看看结果是咋样的。

sql 中是带order by 的,执行出来的结果是一样的

在SQL執行的結果跟archery一致不就代表正常沒問題?
可以請您描述詳細一些嗎?

@howieqdd
Copy link
Author

你的sql需要加order by排序。 你在数据库直接执行看看结果是咋样的。

sql 中是带order by 的,执行出来的结果是一样的

在SQL執行的結果跟archery一致不就代表正常沒問題? 可以請您描述詳細一些嗎?

select * from table order by date desc limit 21,20 不生效, 应该展示的是第21条开始的后20条数据,但是返回的还是1-20条数据

@hhyo
Copy link
Owner

hhyo commented Apr 11, 2024

#1172

@hhyo hhyo closed this as completed Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants