X-Git-Url: https://git.exim.org/buildfarm-server.git/blobdiff_plain/24551e4b695cbaae96a6a781e239903197709f28..ef0c5ae3082ff7915630e34cfacb7232920e3d8d:/trunk/cgi-bin/pgstatus.pl?ds=sidebyside diff --git a/trunk/cgi-bin/pgstatus.pl b/trunk/cgi-bin/pgstatus.pl index 481eb5a..c9b0268 100755 --- a/trunk/cgi-bin/pgstatus.pl +++ b/trunk/cgi-bin/pgstatus.pl @@ -19,7 +19,6 @@ use DBI; use DBD::Pg; use Data::Dumper; use Mail::Send; -use Safe; use Time::ParseDate; use Storable qw(thaw); @@ -209,16 +208,6 @@ if ($frozen_sconf) { $client_conf = thaw $frozen_sconf; } -else -{ - my $container = new Safe; - my $sconf = $conf; - unless ($sconf =~ s/.*(\$Script_Config)/$1/ms ) - { - $sconf = '$Script_Config={};'; - } - $client_conf = $container->reval("$sconf;"); -} if ($min_script_version) { @@ -239,7 +228,7 @@ if ($min_script_version) } } -if ($min_web_script_version && ! ($client_conf->{script_version} eq 'REL_4.3')) +if ($min_web_script_version) { $client_conf->{web_script_version} ||= '0.0'; my $cli_ver = $client_conf->{web_script_version} ; @@ -295,6 +284,16 @@ my $logst = <begin_work; +$db->do("select set_local_error_terse()"); + + $sth=$db->prepare($logst); $sth->bind_param(1,$animal); @@ -318,6 +317,8 @@ $sth->bind_param(16,$frozen_sconf,{ pg_type => DBD::Pg::PG_BYTEA }); $sth->execute; $sth->finish; + + my $logst2 = <finish; +$db->commit; + my $prevst = <