mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-09-03 20:52:57 -05:00
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:
committed by
Akshay Joshi
parent
5a5a9314f3
commit
87b9549ff4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user