Samuele-Tarantino opened a new issue, #2616:
URL: https://github.com/apache/arrow-adbc/issues/2616
### What happened?
When attempting to execute a statement with parameters, binding fails with
the error shown in the Stack Trace section. This occurs with both the Bind and
BindStream methods. The issue reproduces consistently in both the native ADBC
client and ADO.NET client implementations.
### Stack Trace
```
Unhandled exception.
Apache.Arrow.Adbc.C.CAdbcDriverImporter+ImportedAdbcException: Invalid Input
Error: Values were not provided for the following prepared statement
parameters: testParam
at
Apache.Arrow.Adbc.C.CAdbcDriverImporter.CallHelper.TranslateCode(AdbcStatusCode
statusCode)
at
Apache.Arrow.Adbc.C.CAdbcDriverImporter.ImportedAdbcStatement.ExecuteUpdate()
at Apache.Arrow.Adbc.Client.AdbcCommand.ExecuteNonQuery()
```
### How can we reproduce the bug?
```csharp
using var conn = new
adbcClient.AdbcConnection(AdbcDriverLoader.LoadDriver(".\\duckdb.dll",
"duckdb_adbc_init"), new Dictionary<string, string>() { { "path", "" } }, new
Dictionary<string, string>());
conn.Open();
var cmd = conn.CreateCommand();
cmd.Parameters.Add(new adbcClient.AdbcParameter() { DbType =
System.Data.DbType.Int32, IsNullable = false, ParameterName = "testParam",
Value = 12 });
cmd.CommandText = "SELECT $testParam";
cmd.ExecuteNonQuery();
```
### Environment/Setup
ADBC DuckDB Driver v1.2.1 on Windows 10 Enterprise with NuGet
Apache.Arrow.Adbc.Client version 0.16.0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]