better check for FreeTDS thanks to arcanez
[dbsrgits/DBIx-Class.git] / 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;
   }