X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FODBC%2FDB2_400_SQL.pm;h=d0eb5c9aadbb4cbfd336fc1b905aec5564ab43e3;hb=2b8cc2f27d0dc881059e55dd6462bb28b7b8e414;hp=33a4e7abb65a225e6e837e0017922739bf1421fb;hpb=2ad62d97476187e57d20ee49b39d7a7af864bb20;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/ODBC/DB2_400_SQL.pm b/lib/DBIx/Class/Storage/DBI/ODBC/DB2_400_SQL.pm index 33a4e7a..d0eb5c9 100644 --- a/lib/DBIx/Class/Storage/DBI/ODBC/DB2_400_SQL.pm +++ b/lib/DBIx/Class/Storage/DBI/ODBC/DB2_400_SQL.pm @@ -5,6 +5,23 @@ use warnings; use base qw/DBIx::Class::Storage::DBI::ODBC/; use mro 'c3'; +warn 'Major advances took place in the DBIC codebase since this driver' + .' (::Storage::DBI::ODBC::DB2_400_SQL) was written. However since the' + .' RDBMS in question is so rare it is not possible for us to test any' + .' of the "new hottness". If you are using DB2 on AS-400 please get' + .' in contact with the developer team:' + .' http://search.cpan.org/dist/DBIx-Class/lib/DBIx/Class.pm#GETTING_HELP/SUPPORT' + ."\n" +; + +__PACKAGE__->sql_quote_char('"'); + +# FIXME +# Most likely all of this code is redundant and unnecessary. We should +# be able to simply use base qw/DBIx::Class::Storage::DBI::DB2/; +# Unfortunately nobody has an RDBMS engine to test with, so keeping +# things as-is for the time being + sub _dbh_last_insert_id { my ($self, $dbh, $source, $col) = @_; @@ -23,7 +40,7 @@ sub _dbh_last_insert_id { sub _sql_maker_opts { my ($self) = @_; - + $self->dbh_do(sub { my ($self, $dbh) = @_; @@ -43,8 +60,8 @@ over ODBC =head1 SYNOPSIS - # In your table classes - __PACKAGE__->load_components(qw/PK::Auto Core/); + # In your result (table) classes + use base 'DBIx::Class::Core'; __PACKAGE__->set_primary_key('id');