Project

General

Profile

« Previous | Next » 

Revision 3421

sql.py: mk_select(): In queries without a FROM clause, don't order by pkey

View differences:

sql.py
681 681
    assert limit == None or isinstance(limit, (int, long))
682 682
    assert start == None or isinstance(start, (int, long))
683 683
    if order_by is order_by_pkey:
684
        if distinct_on != []: order_by = None
684
        if table0 == None or distinct_on != []: order_by = None
685 685
        else: order_by = pkey(db, table0, recover=True)
686 686
    
687 687
    query = 'SELECT'

Also available in: Unified diff