Skip to content

Commit e6c1e1f

Browse files
committed
[ksqlDB.RestApi.Client]: BugFix- C# decimal is mapped to STRUCT type. #81
1 parent 75a8b98 commit e6c1e1f

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

ksqlDb.RestApi.Client/ChangeLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# ksqlDB.RestApi.Client
22

3+
# 6.0.2
4+
5+
# BugFix
6+
- C# decimal is mapped to STRUCT type. #81
7+
38
# 6.0.1
49

510
# BugFix

ksqlDb.RestApi.Client/KSql/RestApi/Statements/CreateKSqlValue.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ public object ExtractValue<T>(T inputValue, IValueFormatters valueFormatters, Me
2727
if (value == null)
2828
return "NULL";
2929

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

34-
value = valueFormatters.FormatDecimalValue((decimal)value);
34+
if(valueFormatters.FormatDecimalValue != null)
35+
value = valueFormatters.FormatDecimalValue((decimal)value);
3536
}
3637
else if (type == typeof(TimeSpan))
3738
{

ksqlDb.RestApi.Client/ksqlDb.RestApi.Client.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
Documentation for the library can be found at https://github.com/tomasfabian/ksqlDB.RestApi.Client-DotNet/blob/main/README.md.
1616
</Description>
1717
<PackageTags>ksql ksqlDB LINQ .NET csharp push query</PackageTags>
18-
<Version>6.0.1</Version>
19-
<AssemblyVersion>6.0.1.0</AssemblyVersion>
18+
<Version>6.0.2</Version>
19+
<AssemblyVersion>6.0.2.0</AssemblyVersion>
2020
<LangVersion>12.0</LangVersion>
2121
<ImplicitUsings>enable</ImplicitUsings>
2222
<PackageReleaseNotes>https://github.com/tomasfabian/ksqlDB.RestApi.Client-DotNet/blob/main/ksqlDb.RestApi.Client/ChangeLog.md</PackageReleaseNotes>

0 commit comments

Comments
 (0)