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=ec7f1bf777951e89e7f5151a03cfedd23bb1cd88;hpb=8384a713d9046e08314e06bf17c2a878cd215819;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 ec7f1bf..4a95dbf 100644 --- a/lib/DBIx/Class/Storage/DBI/SQLite.pm +++ b/lib/DBIx/Class/Storage/DBI/SQLite.pm @@ -50,12 +50,9 @@ sub deployment_statements { $sqltargs ||= {}; - my $sqlite_version = $self->_get_dbh->{sqlite_version}; - - # numify, SQLT does a numeric comparison - $sqlite_version =~ s/^(\d+) \. (\d+) (?: \. (\d+))? .*/${1}.${2}/x; - - $sqltargs->{producer_args}{sqlite_version} = $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); }