From: Matt S Trout Date: Mon, 30 Apr 2012 23:47:12 +0000 (+0000) Subject: handle empty rs_attrs X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0c9aa88e8ec78b5924799bbca21fdfde4e792f25;p=dbsrgits%2FDBIx-Class-Historic.git handle empty rs_attrs --- diff --git a/lib/DBIx/Class/SQLMaker.pm b/lib/DBIx/Class/SQLMaker.pm index 1697d78..b14dd6d 100644 --- a/lib/DBIx/Class/SQLMaker.pm +++ b/lib/DBIx/Class/SQLMaker.pm @@ -137,7 +137,7 @@ sub select { $limit = $self->__max_int; } - my %final_attrs = (%{$rs_attrs}, limit => $limit, offset => $offset); + my %final_attrs = (%{$rs_attrs||{}}, limit => $limit, offset => $offset); if ($offset and $self->limit_requires_order_by_stability_check) { my $source = $rs_attrs->{_rsroot_rsrc};