# get the schema/table separator:
# '.' when SQL naming is active
- # '/' when sytem naming is active
+ # '/' when system naming is active
my $sep = $dbh->get_info(41);
my $sth = $dbh->prepare_cached(
"SELECT IDENTITY_VAL_LOCAL() FROM SYSIBM${sep}SYSDUMMY1", {}, 3);
__PACKAGE__->load_components(qw/PK::Auto Core/);
__PACKAGE__->set_primary_key('id');
- # In your Schema class
- __PACKAGE__->storage_type('::DBI::ODBC400');
-
-=for comment
-$dbh->get_info(17) returns 'DB2/400 SQL' for an active DB2/400 connection over
-ODBC. This should facility automagically loading this module when
-appropriate instead of manually specifying the storage_type as shown above.
-
=head1 DESCRIPTION
Marc Mims C<< <marc@questright.com> >>
+Based on DBIx::Class::Storage::DBI::DB2 by Jess Robinson.
+
=head1 LICENSE
You may distribute this code under the same terms as Perl itself.