X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FDB2.pm;h=a5b98c3aafb93a7c4cf42b75ba398a8859574bb0;hb=6a247f3368100ac0557e33cc534bc8ad0ccb1175;hp=3bad8e0e17a964e15a73fee16e999383565b4db1;hpb=e8fc51c7ae51c4b7b181967b3b1da12cc951c3f6;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/DB2.pm b/lib/DBIx/Class/Storage/DBI/DB2.pm index 3bad8e0..a5b98c3 100644 --- a/lib/DBIx/Class/Storage/DBI/DB2.pm +++ b/lib/DBIx/Class/Storage/DBI/DB2.pm @@ -6,6 +6,8 @@ use warnings; use base qw/DBIx::Class::Storage::DBI/; use mro 'c3'; +__PACKAGE__->sql_limit_dialect ('RowNumberOver'); + sub _dbh_last_insert_id { my ($self, $dbh, $source, $col) = @_; @@ -19,16 +21,6 @@ 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