This commit is contained in:
garnier-quentin 2019-04-10 13:41:51 +02:00
parent b2e4d859e4
commit 738b33c525
1 changed files with 2 additions and 2 deletions

View File

@ -31,11 +31,11 @@ sub set_version {
$self->{version} = $self->{instance}->get_info(18); # SQL_DBMS_VER $self->{version} = $self->{instance}->get_info(18); # SQL_DBMS_VER
return if (defined($self->{version}) && $self->{version} ne ''); return if (defined($self->{version}) && $self->{version} ne '');
return if ($self->query(query => q{select SERVERPROPERTY('productversion') as product_version}, continue_error => 1) == 1); return if ($self->query(query => q{SELECT CAST(SERVERPROPERTY('productversion') AS VARCHAR) as product_version}, continue_error => 1) == 1);
my $row = $self->fetchrow_hashref(); my $row = $self->fetchrow_hashref();
$self->{version} = $row->{product_version}; $self->{version} = $row->{product_version};
} }
1; 1;
__END__ __END__