mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed autocomplete issue where it is not showing any suggestions if the schema name contains escape characters. Fixes #6045.
This commit is contained in:
parent
ab642344d4
commit
36f76f5e2c
@ -18,3 +18,4 @@ Bug fixes
|
||||
*********
|
||||
|
||||
| `Issue #5871 <https://redmine.postgresql.org/issues/5871>`_ - Ensure that username should be visible in the 'Connect to Server' popup when service and user name both specified.
|
||||
| `Issue #6045 <https://redmine.postgresql.org/issues/6045>`_ - Fixed autocomplete issue where it is not showing any suggestions if the schema name contains escape characters.
|
||||
|
@ -1105,7 +1105,7 @@ class SQLAutoComplete(object):
|
||||
query = ''
|
||||
|
||||
if schema:
|
||||
in_clause = '\'' + schema + '\''
|
||||
in_clause = '\'' + schema.replace("'", "''") + '\''
|
||||
else:
|
||||
for r in self.search_path:
|
||||
in_clause += '\'' + r + '\','
|
||||
|
Loading…
Reference in New Issue
Block a user