DAEMON:
-$dbh = DBI->connect($state_dsn,$state_db{db_user},$state_db{db_pw}, {AutoCommit => 1, pg_enable_utf8 => 1, RaiseError => 1});
+$dbh = DBI->connect(
+ $state_dsn,
+ $state_db{db_user},
+ $state_db{db_pw},
+ { AutoCommit => 1,
+ pg_expand_array => 0,
+ pg_enable_utf8 => 1,
+ RaiseError => 1
+ }
+);
$current_time = DateTime->from_epoch( epoch => time() )->strftime('%FT%T%z');
# This is the child (runner) process;
daemonize("Clark Kent reporting: $r->{report}->{name}");
- my $state_dbh = DBI->connect($state_dsn,$state_db{db_user},$state_db{db_pw}, {AutoCommit => 1, pg_enable_utf8 => 1, RaiseError => 1});
- my $data_dbh = DBI->connect($data_dsn,$data_db{db_user},$data_db{db_pw}, {AutoCommit => 1, pg_enable_utf8 => 1, RaiseError => 1});
+ my $state_dbh = DBI->connect(
+ $state_dsn,
+ $state_db{db_user},
+ $state_db{db_pw},
+ { AutoCommit => 1,
+ pg_expand_array => 0,
+ pg_enable_utf8 => 1,
+ RaiseError => 1
+ }
+ );
+
+ my $data_dbh = DBI->connect(
+ $data_dsn,
+ $data_db{db_user},
+ $data_db{db_pw},
+ { AutoCommit => 1,
+ pg_expand_array => 0,
+ pg_enable_utf8 => 1,
+ RaiseError => 1
+ }
+ );
try {
$state_dbh->do(<<' SQL',{}, $r->{id});