1 package DBIx::Class::Storage::DBI::Oracle;
6 use base qw/DBIx::Class::Storage::DBI/;
8 print STDERR "Oracle.pm got called.\n";
13 print STDERR "Rebless got called.\n";
15 my $version = eval { $self->_dbh->get_info(18); };
18 my ($major, $minor, $patchlevel) = split(/\./, $version);
21 my $class = $major >= 8
22 ? 'DBIx::Class::Storage::DBI::Oracle::WhereJoins'
23 : 'DBIx::Class::Storage::DBI::Oracle::Generic';
25 print STDERR "Class: $class\n";
28 eval "require $class";
30 print STDERR "\$@: $@\n";
31 bless $self, $class unless $@;
40 DBIx::Class::Storage::DBI::Oracle - Base class for Oracle driver
44 # In your table classes
45 __PACKAGE__->load_components(qw/Core/);
49 This class simply provides a mechanism for discovering and loading a sub-class
50 for a specific version Oracle backend. It should be transparent to the user.
55 David Jack Olrik C<< <djo@cpan.org> >>
59 You may distribute this code under the same terms as Perl itself.