X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FResultSource.pm;h=8c40b36734f985b5eafac23645d3ce78a5d7b039;hb=ade8df5b7f265b5de75c6215914adf0627da5163;hp=a97560ffccd901ce4514819a2524f2dbeb7aa9d4;hpb=24010dd8b402137a7ed0293a49d7c9cfdb696695;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/ResultSource.pm b/lib/DBIx/Class/ResultSource.pm index a97560f..8c40b36 100644 --- a/lib/DBIx/Class/ResultSource.pm +++ b/lib/DBIx/Class/ResultSource.pm @@ -12,13 +12,12 @@ use base qw/DBIx::Class/; __PACKAGE__->mk_group_accessors('simple' => qw/_ordered_columns _columns _primaries _unique_constraints name resultset_attributes - schema from _relationships column_info_from_storage source_info/); + schema from _relationships column_info_from_storage source_info + source_name/); __PACKAGE__->mk_group_accessors('component_class' => qw/resultset_class result_class/); -__PACKAGE__->mk_group_ro_accessors('simple' => qw/source_name/); - =head1 NAME DBIx::Class::ResultSource - Result source object @@ -140,10 +139,10 @@ generate a new key value. If not specified, L will attempt to retrieve the name of the sequence from the database automatically. -=item extras +=item extra This is used by L and L -to add extra non-generic data to the column. For example: C<< extras +to add extra non-generic data to the column. For example: C<< extra => { unsigned => 1} >> is used by the MySQL producer to set an integer column to unsigned. For more details, see L. @@ -989,7 +988,11 @@ sub resultset { ) if scalar @_; return $self->resultset_class->new( - $self, $self->{resultset_attributes} + $self, + { + %{$self->{resultset_attributes}}, + %{$self->schema->default_resultset_attributes} + }, ); }