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

Convert id subquery to value tuple #324

Merged
merged 1 commit into from
Apr 15, 2021

Conversation

andy-wm-arthur
Copy link
Contributor

Slicing a queryset in Django generates subqueries with LIMIT clauses, which is not supported in MySQL. Wrapping the queryset in list() converts the subquery to an explicit value tuple.

@jathanism jathanism merged commit 1e6e4e0 into nautobot:develop Apr 15, 2021
@andy-wm-arthur andy-wm-arthur deleted the andy/remove-limit-in-subquery branch May 27, 2021 00:37
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.

None yet

2 participants