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__