From: Peter Rabbitson Date: Sat, 5 Dec 2009 09:46:41 +0000 (+0000) Subject: Better not touch Top - it's too complex at this point X-Git-Tag: v0.08116~103^2~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1719155906e765a64658b95209f15fbbade63bd3;p=dbsrgits%2FDBIx-Class.git Better not touch Top - it's too complex at this point --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index 28e3465..08f2619 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -1782,7 +1782,7 @@ sub _select_args { elsif ( ($attrs->{rows} || $attrs->{offset}) && - ($sql_maker->limit_dialect eq 'RowNumberOver' || $sql_maker->limit_dialect eq 'Top' ) + $sql_maker->limit_dialect eq 'RowNumberOver' && (ref $ident eq 'ARRAY' && @$ident > 1) # indicates a join &&