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

Syntax: ForUpdate after Pagination with Limit and Offset #234

Merged
merged 1 commit into from
Jul 3, 2017

Conversation

ElfoLiNk
Copy link
Contributor

@ElfoLiNk ElfoLiNk commented Jul 2, 2017

Fix the correct query syntax when using for update with pagination.

...page(0, 1).forUpdate

Wrong syntax:

...
FOR UPDATE
LIMIT 1 OFFSET 0

Correct syntax:

...
LIMIT 1 OFFSET 0
FOR UPDATE

@xuwei-k xuwei-k merged commit 2289de0 into squeryl:master Jul 3, 2017
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.

2 participants