1 package DBIx::Class::Storage::DBI::Oracle;
6 use base qw/DBIx::Class::Storage::DBI/;
15 my $version = $self->_get_dbh->get_info(18);
17 my ($major, $minor, $patchlevel) = split(/\./, $version);
20 my $class = $major <= 8
21 ? 'DBIx::Class::Storage::DBI::Oracle::WhereJoins'
22 : 'DBIx::Class::Storage::DBI::Oracle::Generic';
24 $self->ensure_class_loaded ($class);
33 DBIx::Class::Storage::DBI::Oracle - Base class for Oracle driver
37 This class simply provides a mechanism for discovering and loading a sub-class
38 for a specific version Oracle backend. It should be transparent to the user.
40 For Oracle major versions <= 8 it loads the ::Oracle::WhereJoins subclass,
41 which unrolls the ANSI join style DBIC normally generates into entries in
42 the WHERE clause for compatibility purposes. To force usage of this version
43 no matter the database version, add
45 __PACKAGE__->storage_type('::DBI::Oracle::WhereJoins');
51 David Jack Olrik C<< <djo@cpan.org> >>
55 You may distribute this code under the same terms as Perl itself.