use base qw/DBIx::Class::Storage::DBI/;
use mro 'c3';
-sub _rebless {
- my ($self) = @_;
-
- if (my $dbtype = $self->_dbh_get_info('SQL_DBMS_NAME')) {
- # Translate the backend name into a perl identifier
- $dbtype =~ s/\W/_/gi;
- my $subclass = "DBIx::Class::Storage::DBI::ODBC::${dbtype}";
-
- return if $self->isa($subclass);
-
- if ($self->load_optional_class($subclass)) {
- bless $self, $subclass;
- $self->_rebless;
- }
- else {
- warn "Expected driver '$subclass' not found, using generic support. " .
- "Please file an RT.\n";
- }
- }
- else {
- warn "Could not determine your database type, using generic support.\n";
- }
-}
+sub _rebless { shift->_determine_connector_driver('ODBC') }
-# Whether or not we are connecting via the freetds ODBC driver.
+# Whether or not we are connecting via the freetds ODBC driver
sub _using_freetds {
my $self = shift;