X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FSybase%2FBase.pm;h=9ce130f13ff9973ee197af05d62390be73656096;hb=6dc4be0f0d3810cff001512a91f3b832056e21e6;hp=29265fbde1ab2914617a4a6f5b7837eebd97d7e3;hpb=d7ffa0cef0cf0ed4bca219d37b6fa0707b87813d;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/Sybase/Base.pm b/lib/DBIx/Class/Storage/DBI/Sybase/Base.pm index 29265fb..9ce130f 100644 --- a/lib/DBIx/Class/Storage/DBI/Sybase/Base.pm +++ b/lib/DBIx/Class/Storage/DBI/Sybase/Base.pm @@ -1,4 +1,5 @@ -package DBIx::Class::Storage::DBI::Sybase::Base; +package # hide from PAUSE + DBIx::Class::Storage::DBI::Sybase::Base; use strict; use warnings; @@ -8,24 +9,12 @@ use warnings; DBIx::Class::Storage::DBI::Sybase::Base - Common functionality for drivers using DBD::Sybase -=head1 METHODS - -=head2 connected - -Returns true if we have an open (and working) database connection, false if it -is not (yet) open (or does not work). (Executes a simple SELECT to make sure it -works.) - -The reason this is needed is that L's ping() does not work with an -active statement handle, leading to masked database errors. - =cut -sub connected { +sub _ping { my $self = shift; my $dbh = $self->_dbh or return 0; - $dbh->FETCH('Active') or return 0; local $dbh->{RaiseError} = 1; eval {