Skip to content

IDataReader.GetSchemaTable fails after updating from 1.4.4 to 1.5.3 #332

@gfgw

Description

@gfgw

We updated the NuGet package DuckDB.NET.Data.Full in our application from 1.4.4 to 1.5.3.
We open an IDataReader on the database, and execute GetSchemaTable on it. With version 1.4.4 this is working fine. With version 1.5.3 we get an IndexOutOfBoundsException.

We are using a connection to a DuckDB database, open a command using that connection, and call ExecuteReaderAsync on the command.
Then on the resulting IDataReader we call GetSchemaTable, which then fails with exception message Index was outside the bounds of the array..

Stack trace (top two lines):

at DuckDB.NET.Data.DuckDBDataReader.GetName(Int32 ordinal)
at DuckDB.NET.Data.DuckDBDataReader.GetSchemaTable()

I can not find a breaking change in the release notes that documents this.

Why are we getting this exception? Is there something we can do to resolve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions