use dbh->do for connected instead of prepare_cached
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI / Sybase / Base.pm
index a26ed23..4dcea42 100644 (file)
@@ -25,15 +25,9 @@ sub connected {
   my $self = shift;
 
   my $dbh = $self->_dbh;
-
   local $dbh->{RaiseError} = 1;
-
-  my $ping_sth;
-
   eval {
-    my $ping_sth = $dbh->prepare_cached("select 1");
-    $ping_sth->execute;
-    $ping_sth->finish;
+    $dbh->do('select 1');
   };
 
   return $@ ? 0 : 1;