Revision 5522
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
706 | 706 |
if order_by is order_by_pkey: |
707 | 707 |
order_by = None |
708 | 708 |
if table0 != None and distinct_on == []: |
709 |
try: order_by = table_pkey_col(db, table0, recover=True) |
|
710 |
except DoesNotExistException: pass # no pkey to order by |
|
709 |
order_by = table_order_by(db, table0, recover=True) |
|
711 | 710 |
|
712 | 711 |
query = 'SELECT' |
713 | 712 |
|
Also available in: Unified diff
sql.py: mk_select(): Use table_order_by() instead of table_pkey_col() to determine what column(s) to order by if order_by is set to order_by_pkey