Fixed autocomplete issue where it is not showing any suggestions if the schema name contains escape characters. Fixes #6045.
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