Skip to content

Commit

Permalink
[ksqlDB.RestApi.Client]: BugFix- C# decimal is mapped to STRUCT type. #…
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfabian committed May 29, 2024
1 parent 75a8b98 commit e6c1e1f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ksqlDb.RestApi.Client/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ksqlDB.RestApi.Client

# 6.0.2

# BugFix
- C# decimal is mapped to STRUCT type. #81

# 6.0.1

# BugFix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ public object ExtractValue<T>(T inputValue, IValueFormatters valueFormatters, Me
if (value == null)
return "NULL";

if (type == typeof(decimal) && valueFormatters.FormatDecimalValue != null)
if (type == typeof(decimal))
{
Debug.Assert(value != null, nameof(value) + " != null");

value = valueFormatters.FormatDecimalValue((decimal)value);
if(valueFormatters.FormatDecimalValue != null)
value = valueFormatters.FormatDecimalValue((decimal)value);
}
else if (type == typeof(TimeSpan))
{
Expand Down
4 changes: 2 additions & 2 deletions ksqlDb.RestApi.Client/ksqlDb.RestApi.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
Documentation for the library can be found at https://github.com/tomasfabian/ksqlDB.RestApi.Client-DotNet/blob/main/README.md.
</Description>
<PackageTags>ksql ksqlDB LINQ .NET csharp push query</PackageTags>
<Version>6.0.1</Version>
<AssemblyVersion>6.0.1.0</AssemblyVersion>
<Version>6.0.2</Version>
<AssemblyVersion>6.0.2.0</AssemblyVersion>
<LangVersion>12.0</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<PackageReleaseNotes>https://github.com/tomasfabian/ksqlDB.RestApi.Client-DotNet/blob/main/ksqlDb.RestApi.Client/ChangeLog.md</PackageReleaseNotes>
Expand Down

0 comments on commit e6c1e1f

Please sign in to comment.