X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FSQLite.pm;h=5e125c9c8cd8196dfc3dd76387d9a6b355c5999c;hb=70f524e6b39efe4fb16e2fd75132c118f050df25;hp=68d3ac39ee9737afa5adfe9cb114fd6f830f14f3;hpb=b5bf138fc80fe8068328d397192fdd6529373ad8;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 68d3ac3..5e125c9 100644 --- a/lib/DBIx/Class/Storage/DBI/SQLite.pm +++ b/lib/DBIx/Class/Storage/DBI/SQLite.pm @@ -6,7 +6,7 @@ use POSIX 'strftime'; use File::Copy; use File::Spec; -use base qw/DBIx::Class::Storage::DBI::MultiDistinctEmulation/; +use base qw/DBIx::Class::Storage::DBI/; sub _dbh_last_insert_id { my ($self, $dbh, $source, $col) = @_; @@ -19,7 +19,7 @@ sub backup $dir ||= './'; ## Where is the db file? - my $dsn = $self->connect_info()->[0]; + my $dsn = $self->_dbi_connect_info()->[0]; my $dbname = $1 if($dsn =~ /dbname=([^;]+)/); if(!$dbname) @@ -45,21 +45,6 @@ sub backup return $backupfile; } -sub disconnect { - - # As described in this node http://www.perlmonks.org/?node_id=666210 - # there seems to be no sane way to ->disconnect a SQLite database with - # cached statement handles. As per mst we just zap the cache and - # proceed as normal. - - my $self = shift; - if ($self->connected) { - $self->_dbh->{CachedKids} = {}; - $self->next::method (@_); - } -} - - 1; =head1 NAME