X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FSQLite.pm;h=4a95dbf2fbb0d689adf7c35ff89ee48aa7b05385;hb=9e34d55419481925691c7177d43ba48ec02b02eb;hp=186cb60e922c177dfefe48972ee5fefa3fb9d3f8;hpb=6d766626a066b757058d023830f93cf39bb9c302;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 186cb60..4a95dbf 100644 --- a/lib/DBIx/Class/Storage/DBI/SQLite.pm +++ b/lib/DBIx/Class/Storage/DBI/SQLite.pm @@ -50,12 +50,8 @@ sub deployment_statements { $sqltargs ||= {}; - # it'd be cool to use the normalized perl-style version but this needs sqlt hacking as well - if (my $sqlite_version = $self->_server_info->{dbms_version}) { - # numify, SQLT does a numeric comparison - $sqlite_version =~ s/^(\d+) \. (\d+) (?: \. (\d+))? .*/${1}.${2}/x; - - $sqltargs->{producer_args}{sqlite_version} = $sqlite_version if $sqlite_version; + if (my $version = $self->_server_info->{dbms_version}) { + $sqltargs->{producer_args}{sqlite_version} = $version; } $self->next::method($schema, $type, $version, $dir, $sqltargs, @rest);