Postgres does not require decode() calls

This commit is contained in:
Daniel Friesel 2019-03-25 18:11:48 +01:00
parent 62929a570a
commit e2b78170a5
2 changed files with 2 additions and 10 deletions

View file

@ -910,10 +910,6 @@ qq{select * from pending_mails where email = ? and num_tries > 1;}
$raw_real_ts, $raw_route, $raw_messages $raw_real_ts, $raw_route, $raw_messages
) = @row; ) = @row;
$name = decode( 'UTF-8', $name );
$raw_route = decode( 'UTF-8', $raw_route );
$raw_messages = decode( 'UTF-8', $raw_messages );
if ( if (
$action == $match_actions[0] $action == $match_actions[0]
or or
@ -1034,9 +1030,8 @@ qq{select * from pending_mails where email = ? and num_tries > 1;}
my $action_ts = epoch_to_dt( $cols[1] ); my $action_ts = epoch_to_dt( $cols[1] );
my $sched_ts = epoch_to_dt( $cols[8] ); my $sched_ts = epoch_to_dt( $cols[8] );
my $real_ts = epoch_to_dt( $cols[9] ); my $real_ts = epoch_to_dt( $cols[9] );
my $checkin_station_name = decode( 'UTF-8', $cols[3] ); my $checkin_station_name = $cols[3];
my @route my @route = split( qr{[|]}, $cols[10] // q{} );
= split( qr{[|]}, decode( 'UTF-8', $cols[10] // q{} ) );
my @route_after; my @route_after;
my $is_after = 0; my $is_after = 0;
for my $station (@route) { for my $station (@route) {

View file

@ -249,9 +249,6 @@ sub json_export {
$raw_sched_ts, $raw_real_ts, $raw_route, $raw_messages $raw_sched_ts, $raw_real_ts, $raw_route, $raw_messages
) = @row; ) = @row;
$name = decode( 'UTF-8', $name );
$raw_route = decode( 'UTF-8', $raw_route );
$raw_messages = decode( 'UTF-8', $raw_messages );
push( push(
@entries, @entries,
{ {