Skip to content

Add kwarg to setup query #166

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
wants to merge 2 commits into from

Conversation

jayhardee9
Copy link

In recent versions of Django, the setup_query() method of the SQLCompiler accepts a keyword with_col_aliases. As it currently stands, the method override in SQLCopyToCompiler doesn't accept any keywords. So if with_col_aliases=X is passed to SQLCopyToCompiler's method, you'll get a TypeError. This PR should fix this, and I don't think it will break in older versions of Django.

Tested with Django 4.2.1. I haven't tested an older version. I believe Django 4.0 lacks the with_col_aliases keyword if someone else is up for it.

@jayhardee9 jayhardee9 requested a review from palewire as a code owner June 9, 2023 17:03
@palewire
Copy link
Owner

Interesting. Could you add a test for this yet?

@palewire
Copy link
Owner

Thanks for this. I think it will be addressed by #167

@palewire palewire closed this Jun 15, 2023
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