Explicitly enable autocommit

This commit is contained in:
Daniel Friesel 2019-03-23 21:41:23 +01:00
parent 1fe8ee8e6a
commit d0e1c5d1db

View file

@ -252,7 +252,8 @@ sub startup {
my $dbname = $ENV{TRAVELYNX_DB_FILE} // 'travelynx.sqlite'; my $dbname = $ENV{TRAVELYNX_DB_FILE} // 'travelynx.sqlite';
return DBI->connect( "dbi:SQLite:dbname=${dbname}", q{}, q{} ); return DBI->connect( "dbi:SQLite:dbname=${dbname}", undef, undef,
{ AutoCommit => 1 } );
} }
); );
$self->attr( $self->attr(