--- /dev/null
+.. change::
+ :tags: bug, postgresql
+ :tickets: 9106
+
+ Fixed regression where psycopg3 changed an API call as of version 3.1.8 to
+ expect a specific object type that was previously not enforced, breaking
+ connectivity for the psycopg3 dialect.
def _type_info_fetch(self, connection, name):
from psycopg.types import TypeInfo
- return TypeInfo.fetch(connection.connection, name)
+ return TypeInfo.fetch(connection.connection.driver_connection, name)
def initialize(self, connection):
super().initialize(connection)
from psycopg.types import TypeInfo
adapted = connection.connection
- return adapted.await_(TypeInfo.fetch(adapted._connection, name))
+ return adapted.await_(TypeInfo.fetch(adapted.driver_connection, name))
def _do_isolation_level(self, connection, autocommit, isolation_level):
connection.set_autocommit(autocommit)