From 738b33c52542968a4d6db85de0d704fbd902b63f Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 10 Apr 2019 13:41:51 +0200 Subject: [PATCH] Fix #1038 --- database/mssql/dbi.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/mssql/dbi.pm b/database/mssql/dbi.pm index a81d7979e..967ebc556 100644 --- a/database/mssql/dbi.pm +++ b/database/mssql/dbi.pm @@ -31,11 +31,11 @@ sub set_version { $self->{version} = $self->{instance}->get_info(18); # SQL_DBMS_VER 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(); $self->{version} = $row->{product_version}; } 1; -__END__ \ No newline at end of file +__END__