diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-03-23 21:41:23 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-03-23 21:41:23 +0100 |
commit | d0e1c5d1db7cdff6570974ad92120cf1f1085167 (patch) | |
tree | 3a91ab7a6d478f0f50a57cb0151c483a07d9ba08 /lib | |
parent | 1fe8ee8e6a2e1a07f39142fb6ee722352848f625 (diff) |
Explicitly enable autocommit
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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( |