Fixed encoding issue when database encoding set to SQL_ASCII and name of the column is in ASCII character. Fixes #6018

This commit is contained in:
Rahul Shirsat
2021-02-26 13:23:07 +05:30
committed by Akshay Joshi
parent 5a5a9314f3
commit 87b9549ff4
4 changed files with 19 additions and 1 deletions
+3 -1
View File
@@ -453,7 +453,9 @@ def poll(trans_id):
# Using characters %, (, ) in the argument names is not
# supported in psycopg2
col_info['pgadmin_alias'] = \
re.sub("[%()]+", "|", col_name)
re.sub("[%()]+", "|", col_name).\
encode('unicode_escape').decode('utf-8')
session_obj['columns_info'] = columns
# status of async_fetchmany_2darray is True and result is none