From: Peter Rabbitson Date: Mon, 5 Nov 2012 08:15:28 +0000 (+0100) Subject: Squash NaN warnings on older perls X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a3a342eb38c481a8bed434344fe4e871b153b7b7;p=dbsrgits%2FDBIx-Class-Historic.git Squash NaN warnings on older perls --- diff --git a/lib/DBIx/Class/Storage/DBI/ODBC.pm b/lib/DBIx/Class/Storage/DBI/ODBC.pm index a464b5e..3462de1 100644 --- a/lib/DBIx/Class/Storage/DBI/ODBC.pm +++ b/lib/DBIx/Class/Storage/DBI/ODBC.pm @@ -33,10 +33,10 @@ sub _disable_odbc_array_ops { my $self = shift; my $dbh = $self->_get_dbh; - if (eval { DBD::ODBC->VERSION('1.35_01') }) { + if (eval { DBD::ODBC->VERSION(1.35_01) }) { $dbh->{odbc_array_operations} = 0; } - elsif (eval { DBD::ODBC->VERSION('1.33_01') }) { + elsif (eval { DBD::ODBC->VERSION(1.33_01) }) { $dbh->{odbc_disable_array_operations} = 1; } }