-
Notifications
You must be signed in to change notification settings - Fork 106
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
NULLS LAST added to query in django 3.1 #19
Comments
After digging into the issue, I found the backend was just missing a couple more feature flags, so I've opened pull request #20 |
Thanks for the pull request, we'll review it as soon as we can. |
Thank you for your contribution, this was merged. |
This is still an issue, but in a different way, see #31 here and I've reopened https://code.djangoproject.com/ticket/32584 and expanded the description and context. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm testing upgrading from django 3.0 to 3.1, using the latest backend, version 1.0b1. When using the
nulls_last
flag in an order_by, it appends a bit of SQL invalid in MSSQL (NULLS LAST)The following use of nulls_last:
Produces the query:
So both the MSSQL workaround and the ANSI SQL standard are there.
Naturally, this throws the error
[42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near 'NULLS'. (102) (SQLExecDirectW)
The text was updated successfully, but these errors were encountered: