There was an error while loading. Please reload this page.
1 parent 94b8850 commit 8ad41edCopy full SHA for 8ad41ed
1 file changed
postgresql/driver/pq3.py
@@ -1994,6 +1994,8 @@ def connect(self):
1994
# The startup/negotiation xact completed.
1995
if pq.xact is None:
1996
self.pq = pq
1997
+ if hasattr(self.pq.socket, 'fileno'):
1998
+ self.fileno = self.pq.socket.fileno
1999
self.security = 'ssl' if didssl is True else None
2000
showoption_type = element.ShowOption.type
2001
for x in neg.asyncs:
@@ -2070,6 +2072,7 @@ def connect(self):
2070
2072
pass
2071
2073
elif scstr.lower() not in ('on','true','yes'):
2074
self.settings['standard_conforming_strings'] = 'on'
2075
+
2076
super().connect()
2077
2078
def _pq_push(self, xact, controller = None):
0 commit comments