Changes between Version 1 and Version 4 of Ticket #30332


Ignore:
Timestamp:
Apr 4, 2019, 4:48:51 PM (6 years ago)
Author:
Simone Pellizzari
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30332

    • Property Owner changed from nobody to Simone Pellizzari
    • Property Status newclosed
    • Property Resolutionfixed
  • Ticket #30332 – Description

    v1 v4  
    11I found that if you pass and expression as an ordering argument (introduced in https://github.com/django/django/commit/96199e562dcc409ab4bdc2b2146fa7cf73c7c5fe) an {{{ IndexError: tuple index out of range }}} exception will be thrown when the query is executed.
    22
    3 This is caused by simply ignoring {{{ sql_params }}} returned from {{{ as_sql }}} elements contained in passed {{{ ordering }}} argument.
     3This is caused by simply ignoring {{{ sql_params }}} returned from {{{ as_sql }}} calls on expressions contained built from {{{ ordering }}} argument.
Back to Top