summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2016-01-10 08:42:26 +0100
committerYorhel <git@yorhel.nl>2016-01-10 08:42:26 +0100
commitb0d18a88fd8dc092808e2f9b5970496a48b0bcff (patch)
tree9c4d10f6498225fb1c76ca905974ba7cd76bd55a /lib
parent36559518b1e72bf401b04086c25bdefb0a0ac143 (diff)
DB::(VN|Producers): Don't decode_utf8() xml values
Newer versions of DBD::Pg do this automatically.
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/DB/Producers.pm2
-rw-r--r--lib/VNDB/DB/VN.pm2
2 files changed, 0 insertions, 4 deletions
diff --git a/lib/VNDB/DB/Producers.pm b/lib/VNDB/DB/Producers.pm
index 3b6f2a32..929e333b 100644
--- a/lib/VNDB/DB/Producers.pm
+++ b/lib/VNDB/DB/Producers.pm
@@ -4,7 +4,6 @@ package VNDB::DB::Producers;
use strict;
use warnings;
use Exporter 'import';
-use Encode 'decode_utf8';
our @EXPORT = qw|dbProducerGet dbProducerGetRev dbProducerRevisionInsert|;
@@ -50,7 +49,6 @@ sub dbProducerGet {
$select, $join, \%where,
);
- $_->{svg} && ($_->{svg} = decode_utf8($_->{svg})) for (@$r);
return _enrich($self, $r, $np, 0, $o{what});
}
diff --git a/lib/VNDB/DB/VN.pm b/lib/VNDB/DB/VN.pm
index 91ad7ccb..0c684f89 100644
--- a/lib/VNDB/DB/VN.pm
+++ b/lib/VNDB/DB/VN.pm
@@ -6,7 +6,6 @@ use warnings;
use TUWF 'sqlprint';
use Exporter 'import';
use VNDB::Func 'gtintype', 'normalize_query';
-use Encode 'decode_utf8';
our @EXPORT = qw|dbVNGet dbVNGetRev dbVNRevisionInsert dbVNImageId dbScreenshotAdd dbScreenshotGet dbScreenshotRandom dbVNImportSeiyuu|;
@@ -131,7 +130,6 @@ sub dbVNGet {
join(', ', @select), join(' ', @join), \@where, $order,
);
- $_->{svg} && ($_->{svg} = decode_utf8($_->{svg})) for (@$r);
return _enrich($self, $r, $np, 0, $o{what});
}