Clear up some legacy cruft and straighten inheritance
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI / Sybase / Common.pm
index c83398f..af4c916 100644 (file)
@@ -29,7 +29,6 @@ sub _ping {
 
   local $dbh->{RaiseError} = 1;
   local $dbh->{PrintError} = 0;
-  local $@;
 
   if ($dbh->{syb_no_child_con}) {
 # ping is impossible with an active statement, we return false if so
@@ -72,7 +71,7 @@ the Sybase OpenClient libraries were used.
 sub using_freetds {
   my $self = shift;
 
-  return $self->_dbh->{syb_oc_version} =~ /freetds/i;
+  return $self->_get_dbh->{syb_oc_version} =~ /freetds/i;
 }
 
 =head2 set_textsize