Skip to content

Commit f1a8073

Browse files
committed
Merge branch 'develop' of https://github.com/Giorgi/DuckDB.NET into develop
2 parents c92092a + d12b31b commit f1a8073

File tree

2 files changed

+303
-262
lines changed

2 files changed

+303
-262
lines changed

DuckDB.NET.Bindings/DuckDBWrapperObjects.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Microsoft.Win32.SafeHandles;
22
using System;
3+
using System.Globalization;
34
using System.Runtime.CompilerServices;
45

56
namespace DuckDB.NET.Native;
@@ -140,7 +141,8 @@ public T GetValue<T>()
140141
DuckDBType.Float => Cast(NativeMethods.Value.DuckDBGetFloat(this)),
141142
DuckDBType.Double => Cast(NativeMethods.Value.DuckDBGetDouble(this)),
142143

143-
DuckDBType.Decimal => Cast(decimal.Parse(NativeMethods.Value.DuckDBGetVarchar(this))),
144+
DuckDBType.Decimal => Cast(decimal.Parse(NativeMethods.Value.DuckDBGetVarchar(this), NumberStyles.Any, CultureInfo.InvariantCulture)),
145+
144146
DuckDBType.Uuid => Cast(new Guid(NativeMethods.Value.DuckDBGetVarchar(this))),
145147

146148
DuckDBType.HugeInt => Cast(NativeMethods.Value.DuckDBGetHugeInt(this).ToBigInteger()),

0 commit comments

Comments
 (0)