Squash NaN warnings on older perls
Peter Rabbitson [Mon, 5 Nov 2012 08:15:28 +0000 (09:15 +0100)]
lib/DBIx/Class/Storage/DBI/ODBC.pm

index a464b5e..3462de1 100644 (file)
@@ -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;
   }
 }