summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-12-08 09:12:53 +0100
committerYorhel <git@yorhel.nl>2019-12-08 09:12:55 +0100
commitbf8739d1a5bc777eff864b6314a1e9bc3f464946 (patch)
treee1e10d793f917d18214ce92bfc98c290b1fe881a /util
parentc66762abe743cc43ce414aaaf2a672bd62633346 (diff)
dbdump.pl: Do an explicit rollback before disconnecting the DB
Fixes a (harmless) warning: Issuing rollback() due to DESTROY without explicit disconnect() of DBD::Pg::db handle dbname=vndb at util/dbdump.pl line 247.
Diffstat (limited to 'util')
-rwxr-xr-xutil/dbdump.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/dbdump.pl b/util/dbdump.pl
index acb4bf01..dba08504 100755
--- a/util/dbdump.pl
+++ b/util/dbdump.pl
@@ -244,6 +244,7 @@ sub export_img {
$dir{sf}{$_->[0]} = 1 for $db->selectall_array("SELECT id FROM screenshots WHERE $tables{screenshots}{where} ORDER BY id");
$dir{cv}{$_->[0]} = 1 for $db->selectall_array("SELECT image FROM vn WHERE image <> 0 AND $tables{vn}{where} ORDER BY image");
$dir{ch}{$_->[0]} = 1 for $db->selectall_array("SELECT image FROM chars WHERE image <> 0 AND $tables{chars}{where} ORDER BY image");
+ $db->rollback;
undef $db;
find {