Skip to content

Commit

Permalink
Use correct scale for Azure Data Studio results
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMpn committed Nov 25, 2024
1 parent acd1aa7 commit 12e3240
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 12e3240

Please sign in to comment.