Disable ODBC batch ops for Access, they are broken
Rafael Kitover [Sat, 24 Mar 2012 04:07:41 +0000 (00:07 -0400)]
Changes
lib/DBIx/Class/Storage/DBI/ODBC/ACCESS.pm

diff --git a/Changes b/Changes
index 2a4216b..08675d9 100644 (file)
--- a/Changes
+++ b/Changes
@@ -29,6 +29,7 @@ Revision history for DBIx::Class
           for the following drivers too buggy to handle the optimized path:
           - FreeTDS ODBC driver (when used with MSSQL)
           - The Firebird ODBC driver
+          - The MSAccess ODBC driver
         - Explicitly disable DBD::ODBC dynamic_cursors when using freetds 0.83
           or later - they made enough ODBC incompatible changes making it
           impossible to support sanely
index 2a0624f..f2bbb64 100644 (file)
@@ -65,6 +65,9 @@ sub _run_connection_actions {
     $self->_dbh->{LongReadLen} = $long_read_len * 2 + 1;
   }
 
+  # batch operations do not work
+  $self->_get_dbh->{odbc_disable_array_operations} = 1;
+
   return $self->next::method(@_);
 }