Skip to content

fix(queryset): preserve select_for_update in values and values_list#2253

Open
arimu1 wants to merge 1 commit into
tortoise:developfrom
arimu1:fix/select-for-update-values
Open

fix(queryset): preserve select_for_update in values and values_list#2253
arimu1 wants to merge 1 commit into
tortoise:developfrom
arimu1:fix/select-for-update-values

Conversation

@arimu1

@arimu1 arimu1 commented Jul 25, 2026

Copy link
Copy Markdown

Fixes #2250

When values() or values_list() was chained after select_for_update(), the select_for_update parameters were not passed to ValuesQuery / ValuesListQuery, causing the SQL generator to drop FOR UPDATE clauses and lose row locking behavior.

This change passes and preserves select_for_update parameters in ValuesQuery and ValuesListQuery.

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.

.values_list() / .values() silently drop select_for_update() - rows are not locked

1 participant