This commit is contained in:
garnier-quentin 2021-11-03 16:01:09 +01:00
parent 38439d588f
commit 5763e298c9
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ sub init {
for (my $i = 0; $i < scalar(@{$options_result->{server}}); $i++) {
next if ($options_result->{server}->[$i] eq '');
$self->{sqldefault}->{dbi}->[$i] = { data_source => 'DB2:PROTOCOL=TCPIP;hostname=' . $options_result->{server}->[$i] };
$self->{sqldefault}->{dbi}->[$i] = { data_source => 'DB2:PROTOCOL=TCPIP;HOSTNAME=' . $options_result->{server}->[$i] };
if (!defined($options_result->{database}) || $options_result->{database} eq '') {
$self->{output}->add_option_msg(short_msg => 'Need to specify --database option');
$self->{output}->option_exit();