From: Rafael Kitover <rkitover@cpan.org>
Date: Mon, 20 Jul 2009 17:13:25 +0000 (+0000)
Subject: better check for FreeTDS thanks to arcanez
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=65bab8da1f45eba91d9d3817c923633d1126e756;p=dbsrgits%2FDBIx-Class-Historic.git

better check for FreeTDS thanks to arcanez
---

diff --git a/lib/DBIx/Class/Storage/DBI/Sybase.pm b/lib/DBIx/Class/Storage/DBI/Sybase.pm
index 9eb7e01..c12c124 100644
--- a/lib/DBIx/Class/Storage/DBI/Sybase.pm
+++ b/lib/DBIx/Class/Storage/DBI/Sybase.pm
@@ -102,8 +102,10 @@ EOF
 
     return $using_freetds if defined $using_freetds;
 
-    local $dbh->{syb_rowcount} = 1; # this is broken in freetds
-    $using_freetds = @{ $dbh->selectall_arrayref('sp_help') } != 1;
+#    local $dbh->{syb_rowcount} = 1; # this is broken in freetds
+#    $using_freetds = @{ $dbh->selectall_arrayref('sp_help') } != 1;
+
+    $using_freetds = $dbh->{syb_oc_version} =~ /freetds/i;
 
     return $using_freetds;
   }