fix MSSQL via DBD::Sybase regression
Rafael Kitover [Sun, 15 Nov 2009 17:31:37 +0000 (17:31 +0000)]
lib/DBIx/Class/Storage/DBI/Sybase.pm

index 8cb5f5f..5ade896 100644 (file)
@@ -191,6 +191,8 @@ sub _populate_dbh {
 
   $self->next::method(@_);
 
+  return unless $self->_driver_determined; # otherwise we screw up MSSQL
+
   if ($self->_is_bulk_storage) {
 # this should be cleared on every reconnect
     $self->_began_bulk_work(0);