1 package DBIx::Class::Storage::DBI::ODBC;
5 use base qw/DBIx::Class::Storage::DBI/;
10 my $dbtype = eval { $self->dbh->get_info(17) };
12 # Translate the backend name into a perl identifier
14 my $class = "DBIx::Class::Storage::DBI::ODBC::${dbtype}";
15 eval "require $class";
16 bless $self, $class unless $@;
20 sub _dbh_last_insert_id {
21 my ($self, $dbh, $source, $col) = @_;
23 # punt: if there is no derived class for the specific backend, attempt
24 # to use the DBI->last_insert_id, which may not be sufficient (see the
25 # discussion of last_insert_id in perldoc DBI)
26 return $dbh->last_insert_id(undef, undef, $source->from, $col);
33 DBIx::Class::Storage::DBI::ODBC - Base class for ODBC drivers
37 # In your table classes
38 __PACKAGE__->load_components(qw/Core/);
43 This class simply provides a mechanism for discovering and loading a sub-class
44 for a specific ODBC backend. It should be transparent to the user.
49 Marc Mims C<< <marc@questright.com> >>
53 You may distribute this code under the same terms as Perl itself.