Fix an error 'list' object has no attribute 'strip' while attempting to populate auto-complete manually the first time. #6556

This commit is contained in:
Khushboo Vashi authored and GitHub committed 2023-07-13 10:18:38 +05:30
1 parent 45b1794941
commit 715fa47eb6
3 files changed
+7 -7

No files matched your search

@@ -495,8 +495,6 @@ class Connection(BaseConnection):
register_string_typecasters(self.conn)
status, cur = self.__cursor()
manager = self.manager
# autocommit flag does not work with asynchronous connections.
@@ -514,6 +512,8 @@ class Connection(BaseConnection):
postgres_encoding, self.python_encoding = \
get_encoding(self.conn.info.encoding)
status, cur = self.__cursor()
# Note that we use 'UPDATE pg_settings' for setting bytea_output as a
# convenience hack for those running on old, unsupported versions of
# PostgreSQL 'cos we're nice like that.
@@ -87,9 +87,9 @@ RECORD_ARRAY = (2287,)
PSYCOPG_SUPPORTED_BUILTIN_ARRAY_DATATYPES = (
1016, 1005, 1006, 1007, 1021, 1022, 1231,
1002, 1003, 1009, 1014, 1015, 1009, 1014,
1015, 1000, 1115, 1185, 1183, 1270, 1182,
1187, 1001, 1028, 1013, 1041, 651, 1040
1002, 1003, 1009, 1014, 1015, 1014, 1015,
1000, 1115, 1185, 1183, 1270, 1182, 1187,
1001, 1028, 1013, 1041, 651, 1040
)
# json, jsonb