better check for FreeTDS thanks to arcanez
Rafael Kitover [Mon, 20 Jul 2009 17:13:25 +0000 (17:13 +0000)]
lib/DBIx/Class/Storage/DBI/Sybase.pm

index 9eb7e01..c12c124 100644 (file)
@@ -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;
   }