From 12e324099abe917d75ed58dc949259ccf5dbb07f Mon Sep 17 00:00:00 2001 From: Mark Carrington <31017244+MarkMpn@users.noreply.github.com> Date: Mon, 25 Nov 2024 08:16:52 +0000 Subject: [PATCH] Use correct scale for Azure Data Studio results --- .../QueryExecution/QueryExecutionHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MarkMpn.Sql4Cds.LanguageServer/QueryExecution/QueryExecutionHandler.cs b/MarkMpn.Sql4Cds.LanguageServer/QueryExecution/QueryExecutionHandler.cs index d0fb59a6..5cfe7993 100644 --- a/MarkMpn.Sql4Cds.LanguageServer/QueryExecution/QueryExecutionHandler.cs +++ b/MarkMpn.Sql4Cds.LanguageServer/QueryExecution/QueryExecutionHandler.cs @@ -349,7 +349,7 @@ private async Task ExecuteAsync(Connection.Session session, ExecuteRequestParams var schemaTable = reader.GetSchemaTable(); for (var i = 0; i < reader.FieldCount; i++) - resultSet.ColumnInfo[i] = new DbColumnWrapper(reader.GetName(i), reader.GetDataTypeName(i), null); + resultSet.ColumnInfo[i] = new DbColumnWrapper((string)schemaTable.Rows[i]["ColumnName"], (string)schemaTable.Rows[i]["DataTypeName"], (short?)schemaTable.Rows[i]["NumericScale"]); resultSetInProgress = resultSet; resultSets.Add(resultSet);