Ticket #7698: 7698-no-offset-zero.patch
File 7698-no-offset-zero.patch, 635 bytes (added by , 16 years ago) |
---|
-
django/db/models/sql/query.py
291 291 val = self.connection.ops.no_limit_value() 292 292 if val: 293 293 result.append('LIMIT %d' % val) 294 result.append('OFFSET %d' % self.low_mark) 294 if self.low_mark != 0: 295 result.append('OFFSET %d' % self.low_mark) 295 296 296 297 params.extend(self.extra_params) 297 298 return ' '.join(result), tuple(params)