Ticket #12192: 12192-patch2-trunk-r12492.diff

File 12192-patch2-trunk-r12492.diff, 540 bytes (added by Ramiro Morales, 15 years ago)
  • django/db/models/sql/compiler.py

    diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py
    a b  
    5656        If 'with_limits' is False, any limit/offset information is not included
    5757        in the query.
    5858        """
     59        if with_limits and self.query.high_mark == self.query.low_mark:
     60            return '', ()
     61
    5962        self.pre_sql_setup()
    6063        out_cols = self.get_columns(with_col_aliases)
    6164        ordering, ordering_group_by = self.get_ordering()
Back to Top