Skip to content

Truncate ids in SQL IN clause #49

wants to merge 1 commit into from

2 participants

lanior commented Nov 19, 2011

sqlparse place each value in IN clause into separate line making queries generated by prefetch_related and batch_select unreadable.
This patch limits IN clause size to 5 values.


+1 - big annoyance here too

@coagulant coagulant added a commit to coagulant/django-devserver that referenced this pull request Feb 11, 2015
@coagulant coagulant Truncate ids in SQL IN clause eea3fe8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.