Skip to content

Django 4.2 error: each UNION query must have the same number of columns #87

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

Closed
adamanthil opened this issue Mar 7, 2024 · 3 comments
Closed

Comments

@adamanthil
Copy link

adamanthil commented Mar 7, 2024

In Django 4.2, using UNION queries with order by and select_related causes the above error, as originally referenced in #81 (comment)

We're encountering this now in our production code base, and it is currently preventing an update beyond Django 4.1.

Related: #66

@millerdev
Copy link
Contributor

Can you provide an example query that reproduces the issue, preferably using models from the django-cte test suite?

@adamanthil
Copy link
Author

Let me work on that and get back to you.

@millerdev
Copy link
Contributor

This can be reopened if more details are provided.

@millerdev millerdev closed this as not planned Won't fix, can't repro, duplicate, stale Apr 23, 2024
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

No branches or pull requests

2 participants