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

correct the wrong pagination query #737

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Lucarun
Copy link
Contributor

@Lucarun Lucarun commented Apr 22, 2023

"select * from blogpost limit 5 offset 10" means querying 5 rows of data starting from row 10 in the sqlite. It doesn't align with the actual meaning of this pagination query API - "/api/blog/posts". (page and per_page). Please correct me if I am wrong. Thx!

"select * from blogpost limit 5 offset 10" means querying 5 rows of data starting from row 10 in the sqlite. It doesn't align with the actual meaning of this pagination query API - "/api/blog/posts". (page and per_page). Please correct me if I am wrong. Thx!
@marina-p
Copy link
Contributor

You are correct. I'm going to check the previous implementation of demo_server before merging it to see if this was supposed to be a planted bug, or if I introduced this bug unintentionally while porting it.

@Yanqiulei
Copy link

How can I resolve the following error when using Restler for testing functionality?
2024-01-24 16:39:01.091: Connection error: 'Exception: [Errno 104] Connection reset by peer'

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

Successfully merging this pull request may close these issues.

3 participants