Ticket #12192: 12192-patch1.diff
File 12192-patch1.diff, 687 bytes (added by , 15 years ago) |
---|
-
django/db/models/sql/query.py
diff -r 1fe026327305 django/db/models/sql/query.py
a b 455 455 456 456 if with_limits: 457 457 if self.high_mark is not None: 458 result.append('LIMIT %d' % (self.high_mark - self.low_mark)) 458 if self.high_mark != self.low_mark: 459 result.append('LIMIT %d' % (self.high_mark - self.low_mark)) 460 else: 461 return '', () 459 462 if self.low_mark: 460 463 if self.high_mark is None: 461 464 val = self.connection.ops.no_limit_value()