Skip to content

Commit ef47ab1

Browse files
committed
Update to DuckDB 1.5.0
1 parent 4b41153 commit ef47ab1

3 files changed

Lines changed: 7 additions & 19 deletions

File tree

DuckDB.NET.Bindings/Bindings.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Updated to DuckDB v1.4.4
77
</PackageReleaseNotes>
88
<RootNamespace>DuckDB.NET.Native</RootNamespace>
99
<RuntimeIdentifiers>win-x64;win-arm64;linux-x64;linux-arm64;osx</RuntimeIdentifiers>
10-
<DuckDbArtifactRoot Condition=" '$(DuckDbArtifactRoot)' == '' ">https://github.com/duckdb/duckdb/releases/download/v1.4.4</DuckDbArtifactRoot>
10+
<DuckDbArtifactRoot Condition=" '$(DuckDbArtifactRoot)' == '' ">https://github.com/duckdb/duckdb/releases/download/v1.5.0</DuckDbArtifactRoot>
1111
<SignAssembly>True</SignAssembly>
1212
<AssemblyOriginatorKeyFile>..\keyPair.snk</AssemblyOriginatorKeyFile>
1313
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

DuckDB.NET.Data/DataChunk/Reader/VectorDataReaderBase.cs

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,9 @@ public unsafe bool IsValid(ulong offset)
4545
return isValid;
4646
}
4747

48-
public T GetValue<T>(ulong offset)
49-
{
50-
return GetValue<T>(offset, strict: false);
51-
}
48+
public T GetValue<T>(ulong offset) => GetValue<T>(offset, strict: false);
5249

53-
internal T GetValueStrict<T>(ulong offset)
54-
{
55-
return GetValue<T>(offset, strict: true);
56-
}
50+
internal T GetValueStrict<T>(ulong offset) => GetValue<T>(offset, strict: true);
5751

5852
internal T GetValue<T>(ulong offset, bool strict)
5953
{
@@ -85,10 +79,7 @@ internal T GetValue<T>(ulong offset, bool strict)
8579
/// <param name="offset">Position to read the data from</param>
8680
/// <param name="targetType">Type of the return value</param>
8781
/// <returns>Data at the specified offset</returns>
88-
protected virtual T GetValidValue<T>(ulong offset, Type targetType)
89-
{
90-
return (T)GetValue(offset, targetType);
91-
}
82+
protected virtual T GetValidValue<T>(ulong offset, Type targetType) => (T)GetValue(offset, targetType);
9283

9384
public object GetValue(ulong offset)
9485
{
@@ -105,10 +96,7 @@ internal virtual object GetValue(ulong offset, Type targetType)
10596
};
10697
}
10798

108-
internal object GetProviderSpecificValue(ulong offset)
109-
{
110-
return GetValue(offset, ProviderSpecificClrType);
111-
}
99+
internal object GetProviderSpecificValue(ulong offset) => GetValue(offset, ProviderSpecificClrType);
112100

113101
protected virtual Type GetColumnType()
114102
{

DuckDB.NET.Test/DuckDBManagedAppenderTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ public void AppendDefault()
715715
reader.GetInt32(2).Should().Be(30);
716716
}
717717

718-
[Fact(Skip = "Only available in DuckDB 1.5")]
718+
[Fact]
719719
public void ClearAppender()
720720
{
721721
Command.CommandText = "CREATE OR REPLACE TABLE tbl_empty (i INT DEFAULT 4, j INT, k INT DEFAULT 30)";
@@ -737,7 +737,7 @@ public void ClearAppender()
737737
}
738738

739739

740-
[Fact(Skip = "Only available in DuckDB 1.5")]
740+
[Fact]
741741
public void ClearAppenderAddMoreData()
742742
{
743743
Command.CommandText = "CREATE OR REPLACE TABLE tbl_empty (i INT DEFAULT 4, j INT, k INT DEFAULT 30)";

0 commit comments

Comments
 (0)