From d0e1c5d1db7cdff6570974ad92120cf1f1085167 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 23 Mar 2019 21:41:23 +0100 Subject: Explicitly enable autocommit --- lib/Travelynx.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 7a73919..43b8846 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -252,7 +252,8 @@ sub startup { 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( -- cgit v1.2.3