zodb / relstorage

A backend for ZODB that stores pickles in a relational database.
Other
53 stars 46 forks source link

pg8000 driver - AttributeError: 'Connection' object has no attribute 'in_transaction' #495

Closed glautersv closed 1 year ago

glautersv commented 1 year ago

relstorage/adapters/postgresql/drivers/pg8000.py

line 246, in connection_may_need_commit return conn.in_transaction AttributeError: 'Connection' object has no attribute 'in_transaction'

mamico commented 1 year ago

I had same issue today, changing here:

https://github.com/zodb/relstorage/blob/463450e822cb988905ae050e35913e1c91f6241a/src/relstorage/adapters/postgresql/drivers/pg8000.py#L246

- conn.in_transaction
+ conn._in_transaction

the problem seems to have been solved. But I think pg8000 has changed many things since the implementation of Relstorage. So there may be other hidden problems.

jamadden commented 1 year ago

Fixed in the upcoming RelStorage 4.