X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FDB2.pm;h=66851d823104d89cf4f907b3809201d85847347b;hb=2b8cc2f27d0dc881059e55dd6462bb28b7b8e414;hp=b36ab13c560600c7bdecfd0cc99e0293989d6aec;hpb=d4daee7b54e38e4b3d3d0a77759bddc1a4ede6e5;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/DB2.pm b/lib/DBIx/Class/Storage/DBI/DB2.pm index b36ab13..66851d8 100644 --- a/lib/DBIx/Class/Storage/DBI/DB2.pm +++ b/lib/DBIx/Class/Storage/DBI/DB2.pm @@ -6,6 +6,9 @@ use warnings; use base qw/DBIx::Class::Storage::DBI/; use mro 'c3'; +__PACKAGE__->sql_limit_dialect ('RowNumberOver'); +__PACKAGE__->sql_quote_char ('"'); + sub _dbh_last_insert_id { my ($self, $dbh, $source, $col) = @_; @@ -19,16 +22,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 @@ -38,7 +31,7 @@ DBIx::Class::Storage::DBI::DB2 - Automatic primary key class for DB2 =head1 SYNOPSIS # In your table classes - __PACKAGE__->load_components(qw/PK::Auto Core/); + use base 'DBIx::Class::Core'; __PACKAGE__->set_primary_key('id'); =head1 DESCRIPTION