henryharbeck opened a new issue, #3262:
URL: https://github.com/apache/arrow-adbc/issues/3262
### What happened?
Given that `adbc_driver_manager.dbapi.Cursor` is a A DB-API 2.0 (PEP 249)
cursor, I would expect the ADBC driver to match the standard library sqlite
driver.
### Stack Trace
_No response_
### How can we reproduce the bug?
```python
import sqlite3
import adbc_driver_sqlite.dbapi
query = "SELECT 'foo' WHERE :n = 1"
# Also produces the error: query = "SELECT 'foo' WHERE $n = 1"
params = {"n": 1}
with adbc_driver_sqlite.dbapi.connect() as adbc_conn:
adbc_cursor = adbc_conn.cursor()
adbc_cursor.execute(query, params)
res = adbc_cursor.fetchone()
print(res) # None
adbc_cursor.close()
with sqlite3.connect(":memory:") as sqlite_conn:
sqlite_cursor = sqlite_conn.cursor()
sqlite_cursor.execute(query, params)
res = sqlite_cursor.fetchone()
print(res) # ('foo',)
sqlite_cursor.close()
```
### Environment/Setup
Python 3.11.8 on WSL. Latest version of all packages. Repro executed with uv.
```
uv run --no-project --with 'adbc-driver-sqlite' --with 'pyarrow' repro.py
```
--
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]