-
Notifications
You must be signed in to change notification settings - Fork 182
Open
Labels
Type: bugSomething isn't workingSomething isn't working
Milestone
Description
What happened?
The python dbapi spect specifies that descriptor should be none if a statement does not return any data: https://peps.python.org/pep-0249/#description
This attribute will be None for operations that do not return rows or if the cursor has not had an operation invoked via the .execute*() method yet.
Stack Trace
Traceback (most recent call last):
File "foo.py", line 259, in <module>
assert cur.description is None, cur.description
^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: []
How can we reproduce the bug?
from adbc_driver_postgresql.dbapi import connect
url = 'postgresql://scott:tiger@localhost/test'
with connect(url) as conn, conn.cursor() as cur:
cur.execute('create table t(a int)')
assert cur.description is None, cur.descriptionEnvironment/Setup
adbc_driver_manager = 1.8.0
adbc_driver_postgresql = 1.8.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: bugSomething isn't workingSomething isn't working