projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
use dbh->do for connected instead of prepare_cached
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
Storage
/
DBI
/
Sybase
/
Base.pm
diff --git
a/lib/DBIx/Class/Storage/DBI/Sybase/Base.pm
b/lib/DBIx/Class/Storage/DBI/Sybase/Base.pm
index
a26ed23
..
4dcea42
100644
(file)
--- a/
lib/DBIx/Class/Storage/DBI/Sybase/Base.pm
+++ b/
lib/DBIx/Class/Storage/DBI/Sybase/Base.pm
@@
-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;