Skip to content

Commit

Permalink
Merge pull request #592 from MarkMpn/ssms-21
Browse files Browse the repository at this point in the history
Use correct scale for Azure Data Studio results
  • Loading branch information
MarkMpn authored Nov 26, 2024
2 parents e3d814a + d95044c commit 793c5fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 793c5fa

Please sign in to comment.