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:
committed by
Akshay Joshi
parent
ab642344d4
commit
36f76f5e2c
@@ -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 + '\','
|
||||
|
||||
Reference in New Issue
Block a user