1 package DBIx::Class::Storage::DBI::ODBC;
5 use base qw/DBIx::Class::Storage::DBI/;
11 my $dbtype = eval { $self->dbh->get_info(17) };
13 # Translate the backend name into a perl identifier
15 my $subclass = "DBIx::Class::Storage::DBI::ODBC::${dbtype}";
16 if ($self->load_optional_class($subclass) && !$self->isa($subclass)) {
17 bless $self, $subclass;
23 sub _dbh_last_insert_id {
24 my ($self, $dbh, $source, $col) = @_;
26 # punt: if there is no derived class for the specific backend, attempt
27 # to use the DBI->last_insert_id, which may not be sufficient (see the
28 # discussion of last_insert_id in perldoc DBI)
29 return $dbh->last_insert_id(undef, undef, $source->from, $col);
36 DBIx::Class::Storage::DBI::ODBC - Base class for ODBC drivers
40 # In your table classes
41 __PACKAGE__->load_components(qw/Core/);
46 This class simply provides a mechanism for discovering and loading a sub-class
47 for a specific ODBC backend. It should be transparent to the user.
52 Marc Mims C<< <marc@questright.com> >>
56 You may distribute this code under the same terms as Perl itself.