projects
/
dbsrgits/DBIx-Class-Historic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
d6e8095
)
fix limit for DB2
Rafael Kitover [Fri, 22 May 2009 06:09:05 +0000 (06:09 +0000)]
lib/DBIx/Class/SQLAHacks.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/SQLAHacks.pm
b/lib/DBIx/Class/SQLAHacks.pm
index
02f28cc
..
c3de659
100644
(file)
--- 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";