Ticket #3825: query_ordering.patch
File query_ordering.patch, 693 bytes (added by , 18 years ago) |
---|
-
query.py
530 530 col_name = f 531 531 order = "ASC" 532 532 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:] 534 536 table_prefix = backend.quote_name(table_prefix) + '.' 535 537 else: 536 538 # Use the database table as a column prefix if it wasn't given,