Fix dropping of databases with Unicode names. Fixes #2243
1. Pickup correct encoding in qtLiteral to decode.
2. While releasing database connection only decode database name if it's not unicode.
Branch
------
master
Details
-------
http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=e4134695e564a6f696f7acbfb1b11a3026601dd7
Author: Harshal Dhumal <harshal(dot)dhumal(at)enterprisedb(dot)com>
Modified Files
--------------
web/pgadmin/utils/driver/psycopg2/__init__.py | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)