From: Norbert Buchmuller Date: Tue, 11 Nov 2008 06:00:44 +0000 (+0100) Subject: * Removed dead code (sub _RowNumberOver). X-Git-Tag: v0.08240~189^2~34 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2304e326c2d4a4e3745f52941639cfea708a76b6;p=dbsrgits%2FDBIx-Class.git * Removed dead code (sub _RowNumberOver). --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index b31ac27..6126b3f 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -50,27 +50,6 @@ sub new { $self; } -sub _RowNumberOver { - my ($self, $sql, $order, $rows, $offset ) = @_; - - $offset += 1; - my $last = $rows + $offset; - my ( $order_by ) = $self->_order_by( $order ); - - $sql = <<""; -SELECT * FROM -( - SELECT Q1.*, ROW_NUMBER() OVER( ) AS ROW_NUM FROM ( - $sql - $order_by - ) Q1 -) Q2 -WHERE ROW_NUM BETWEEN $offset AND $last - - return $sql; -} - - # While we're at it, this should make LIMIT queries more efficient, # without digging into things too deeply use Scalar::Util 'blessed';