projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fix segfault with old DBD::Sybase
[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
e1ebe88
..
29265fb
100644
(file)
--- a/
lib/DBIx/Class/Storage/DBI/Sybase/Base.pm
+++ b/
lib/DBIx/Class/Storage/DBI/Sybase/Base.pm
@@
-24,7
+24,9
@@
active statement handle, leading to masked database errors.
sub connected {
my $self = shift;
- my $dbh = $self->_dbh;
+ my $dbh = $self->_dbh or return 0;
+ $dbh->FETCH('Active') or return 0;
+
local $dbh->{RaiseError} = 1;
eval {
$dbh->do('select 1');