Ticket #5295: joins_order_by.diff
File joins_order_by.diff, 781 bytes (added by , 17 years ago) |
---|
-
query.py
544 544 order = "ASC" 545 545 if "." in col_name: 546 546 table_prefix, col_name = col_name.split('.', 1) 547 # accept table name not only the internal alias as prefix 548 if joins: 549 for join_alias, join_vals in joins.items(): 550 if qn(table_prefix) == join_vals[0]: 551 table_prefix = join_alias 547 552 table_prefix = qn(table_prefix) + '.' 548 553 else: 549 554 # Use the database table as a column prefix if it wasn't given,