#116 new
Peter Cooper

SQL offset is wrong P187

Reported by Peter Cooper | February 10th, 2008 @ 06:25 PM | in Second Edition

On P187, code:

For example, a find for the second page of 10 results in a list of timesheets is:

Timesheet.find(:all, :limit => 10, :offset => 11)

The offset should be 10, as offsets are zero based (on MySQL at least).

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket