projects
/
dbsrgits/DBIx-Class.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
2932b9a
)
fix segfault with old DBD::Sybase
Rafael Kitover [Wed, 1 Jul 2009 15:20:52 +0000 (15:20 +0000)]
lib/DBIx/Class/Storage/DBI/Sybase/Base.pm
patch
|
blob
|
blame
|
history
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');