X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FDB2.pm;h=b36ab13c560600c7bdecfd0cc99e0293989d6aec;hb=d4daee7b54e38e4b3d3d0a77759bddc1a4ede6e5;hp=4988c0696eecb4160ba85ce39a79a8702bc6d22f;hpb=ac788c460002e58aed8877ea46154f1b0d0f3193;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/DB2.pm b/lib/DBIx/Class/Storage/DBI/DB2.pm index 4988c06..b36ab13 100644 --- a/lib/DBIx/Class/Storage/DBI/DB2.pm +++ b/lib/DBIx/Class/Storage/DBI/DB2.pm @@ -4,8 +4,7 @@ use strict; use warnings; use base qw/DBIx::Class::Storage::DBI/; - -# __PACKAGE__->load_components(qw/PK::Auto/); +use mro 'c3'; sub _dbh_last_insert_id { my ($self, $dbh, $source, $col) = @_; @@ -22,11 +21,11 @@ sub datetime_parser_type { "DateTime::Format::DB2"; } sub _sql_maker_opts { my ( $self, $opts ) = @_; - + if ( $opts ) { $self->{_sql_maker_opts} = { %$opts }; } - + return { limit_dialect => 'RowNumberOver', %{$self->{_sql_maker_opts}||{}} }; }