diff --git a/src/Core/RevEng.Core.80/Routines/Functions/SqlServerFunctionModelFactory.cs b/src/Core/RevEng.Core.80/Routines/Functions/SqlServerFunctionModelFactory.cs index 1c92ca370..7219b0d4f 100644 --- a/src/Core/RevEng.Core.80/Routines/Functions/SqlServerFunctionModelFactory.cs +++ b/src/Core/RevEng.Core.80/Routines/Functions/SqlServerFunctionModelFactory.cs @@ -51,7 +51,9 @@ protected override List> GetResultElementLists(SqlConn COALESCE(ts.name, tu.name) AS type_name, c.column_id AS column_ordinal, c.is_nullable, - c.max_length + c.max_length, + c.precision, + c.scale FROM sys.columns c inner join sys.types tu ON c.user_type_id = tu.user_type_id inner join sys.objects AS o on o.object_id = c.object_id @@ -91,6 +93,8 @@ FROM sys.columns c Ordinal = int.Parse(res["column_ordinal"].ToString()!, CultureInfo.InvariantCulture), Nullable = (bool)res["is_nullable"], MaxLength = maxLength, + Precision = (byte)res["precision"], + Scale = (byte)res["scale"], }; list.Add(parameter); diff --git a/src/Core/RevEng.Core.80/Routines/Procedures/SqlServerStoredProcedureModelFactory.cs b/src/Core/RevEng.Core.80/Routines/Procedures/SqlServerStoredProcedureModelFactory.cs index fdbe27a82..8a5cd625c 100644 --- a/src/Core/RevEng.Core.80/Routines/Procedures/SqlServerStoredProcedureModelFactory.cs +++ b/src/Core/RevEng.Core.80/Routines/Procedures/SqlServerStoredProcedureModelFactory.cs @@ -195,6 +195,8 @@ private static List> GetFirstResultSet(SqlConnection c Ordinal = int.Parse(row["column_ordinal"].ToString()!, CultureInfo.InvariantCulture), Nullable = (bool)row["is_nullable"], MaxLength = maxLength, + Precision = (byte)row["precision"], + Scale = (byte)row["scale"], }; list.Add(parameter);