From: Rafael Kitover Date: Fri, 22 May 2009 06:09:05 +0000 (+0000) Subject: fix limit for DB2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=03e1d9af410d113b9d7f21d09f9a67e8e6f6554d;p=dbsrgits%2FDBIx-Class-Historic.git fix limit for DB2 --- diff --git a/lib/DBIx/Class/SQLAHacks.pm b/lib/DBIx/Class/SQLAHacks.pm index 02f28cc..c3de659 100644 --- a/lib/DBIx/Class/SQLAHacks.pm +++ b/lib/DBIx/Class/SQLAHacks.pm @@ -76,7 +76,7 @@ sub _RowNumberOver { my ($self, $sql, $order, $rows, $offset ) = @_; $offset += 1; - my $last = $rows + $offset; + my $last = $rows + $offset - 1; my ( $order_by ) = $self->_order_by( $order ); $sql = <<"SQL";