There was an error while loading. Please reload this page.
1 parent 52f2c9d commit 35fcc49Copy full SHA for 35fcc49
1 file changed
postgresql/protocol/element3.py
@@ -482,7 +482,7 @@ def bytes(self):
482
def parse(typ, data):
483
if data[0:4] != typ.packed_version:
484
raise ValueError("invalid cancel query code")
485
- return typ(*self.struct.unpack(data[4:]))
+ return typ(*typ.struct.unpack(data[4:]))
486
487
class NegotiateSSL(Message):
488
"Discover backend's SSL support"
0 commit comments