check DBD::ODBC version when disabling array ops
authorRafael Kitover <rkitover@cpan.org>
Sat, 31 Mar 2012 15:01:22 +0000 (11:01 -0400)
committerRafael Kitover <rkitover@cpan.org>
Wed, 4 Apr 2012 02:23:10 +0000 (22:23 -0400)
commit11f7049f71cd5d6b891e8addd3c0d9cd2a27c3e8
treebd411bff684ca7270ed236d983a13d09034f21bd
parent2edf33525bc7be0824693925c528791d84db98aa
check DBD::ODBC version when disabling array ops

After 1.35 DBD::ODBC will disable array operations for execute_for_fetch
by default, and the $dbh attribute is changing from
'odbc_disable_array_operations' to 'odbc_array_operations', but we still
set the new attribute to 0 just in case.

Put the version checks and the setting of the appropriate attribute in
_disable_odbc_array_ops in ODBC.pm, and call it from the 3 drivers where
we currently need to disable them.
lib/DBIx/Class/Storage/DBI/ODBC.pm
lib/DBIx/Class/Storage/DBI/ODBC/ACCESS.pm
lib/DBIx/Class/Storage/DBI/ODBC/Firebird.pm
lib/DBIx/Class/Storage/DBI/ODBC/Microsoft_SQL_Server.pm