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=94942394c18872ea5a6c309f62e15ff89127e98d;hp=4b5051b016e3ec2560ee007db5cec11255f62738;hpb=d4f16b21abb7a541e0c44bfe3ec68309a8d722fa;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/Storage/DBI/DB2.pm b/lib/DBIx/Class/Storage/DBI/DB2.pm index 4b5051b..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) = @_; @@ -20,6 +19,16 @@ sub _dbh_last_insert_id { 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}||{}} }; +} + 1; =head1 NAME