Skip to content

Commit 5a63357

Browse files
author
James William Pye
committed
Use __getitem__ not __call__.
1 parent dedfe06 commit 5a63357

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

postgresql/driver/pq3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ def _raise_parameter_tuple_error(self, procs, tup, itemnum):
817817
def _raise_column_tuple_error(self, procs, tup, itemnum):
818818
# Find the SQL type name. This should *not* hit the server.
819819
typ = self.database.typio.sql_type_from_oid(
820-
self.pg_column_types(itemnum)
820+
self.pg_column_types[itemnum]
821821
) or '<unknown>'
822822

823823
# Representation of the bad column.

0 commit comments

Comments
 (0)