Ticket #12192: 12192-patch2-trunk-r12492.diff
File 12192-patch2-trunk-r12492.diff, 540 bytes (added by , 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 56 56 If 'with_limits' is False, any limit/offset information is not included 57 57 in the query. 58 58 """ 59 if with_limits and self.query.high_mark == self.query.low_mark: 60 return '', () 61 59 62 self.pre_sql_setup() 60 63 out_cols = self.get_columns(with_col_aliases) 61 64 ordering, ordering_group_by = self.get_ordering()