\n"; # Work out params ($env, $export, $str, $displaystr, $args) = &set_parameter_envs($cmd, $cmd->{'sql'}, undef); # Run it $cmd = $dbh->prepare($cmd->{'sql'}); if (!$cmd) { print &text('srun_eprepare', $dbh->errstr),"
\n"; } elsif (!$cmd->execute(@$args)) { print &text('srun_eexecute', $dbh->errstr),"
\n"; } else { # Show results if (@titles = @{$cmd->{'NAME'}}) { print &ui_columns_start(\@titles); # Show results while(my @r = $cmd->fetchrow()) { print &ui_columns_row(\@r); } print &ui_columns_end(); $cmd->finish(); } else { $r = $cmd->finish(); print &text('srun_none', $r),"
\n"; } } &ui_print_footer("", $text{'index_return'});