Ticket #3825: query_ordering.patch

File query_ordering.patch, 693 bytes (added by David S. <davidschein@…>, 18 years ago)

patch

  • query.py

     
    530530                    col_name = f
    531531                    order = "ASC"
    532532                if "." in col_name:
    533                     table_prefix, col_name = col_name.split('.', 1)
     533                    table_prefix, col_name = col_name.rsplit('.', 1)
     534                    if col_name.startswith('-'):
     535                        col_name = col_name[1:]
    534536                    table_prefix = backend.quote_name(table_prefix) + '.'
    535537                else:
    536538                    # Use the database table as a column prefix if it wasn't given,
Back to Top