Better detection/synchronization of MSSQL dynamic cursor state
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI / ODBC / Firebird.pm
index 24fe0b4..ac0afbb 100644 (file)
@@ -34,14 +34,14 @@ makes it more suitable for long running processes such as under L<Catalyst>.
 __PACKAGE__->datetime_parser_type ('DBIx::Class::Storage::DBI::ODBC::Firebird::DateTime::Format');
 
 # batch operations in DBD::ODBC 1.35 do not work with the official ODBC driver
-sub _init {
+sub _run_connection_actions {
   my $self = shift;
 
-  $self->next::method(@_);
-
   if ($self->_dbh_get_info('SQL_DRIVER_NAME') eq 'OdbcFb') {
-    $self->_get_dbh->{odbc_disable_array_operations} = 1;
+    $self->_disable_odbc_array_ops;
   }
+
+  return $self->next::method(@_);
 }
 
 # releasing savepoints doesn't work for some reason, but that shouldn't matter