X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FSQLite.pm;h=18f87ae5d3316fa32f6fc93018c317357367a1ad;hb=00882d2c977e56a42654e8c5bb3cd02fde7921f5;hp=a1a84c055948be24258f84c119dad4b9ef711e94;hpb=db9c03868eadb17753aa7224f2f9816aa2cc1b91;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/Storage/DBI/SQLite.pm b/lib/DBIx/Class/Storage/DBI/SQLite.pm index a1a84c0..18f87ae 100644 --- a/lib/DBIx/Class/Storage/DBI/SQLite.pm +++ b/lib/DBIx/Class/Storage/DBI/SQLite.pm @@ -257,7 +257,11 @@ sub bind_attribute_by_data_type { # DBD::SQLite warns on binding >32 bit values with 32 bit IVs sub _dbh_execute { if ( - DBIx::Class::_ENV_::IV_SIZE < 8 + ( + DBIx::Class::_ENV_::IV_SIZE < 8 + or + DBIx::Class::_ENV_::OS_NAME eq 'MSWin32' + ) and ! defined $DBD::SQLite::__DBIC_CHECK_dbd_mishandles_bound_BIGINT ) { @@ -272,7 +276,15 @@ sub _dbh_execute { | \d+ \s type \s @{[ DBI::SQL_BIGINT() ]} \s as \s [-+]? \d+ (?: \. 0*)? ) - /x ) if DBIx::Class::_ENV_::IV_SIZE < 8 and $DBD::SQLite::__DBIC_CHECK_dbd_mishandles_bound_BIGINT; + /x ) if ( + ( + DBIx::Class::_ENV_::IV_SIZE < 8 + or + DBIx::Class::_ENV_::OS_NAME eq 'MSWin32' + ) + and + $DBD::SQLite::__DBIC_CHECK_dbd_mishandles_bound_BIGINT + ); shift->next::method(@_); }