mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed search object issue when the object name contains special characters. Fixes #5401
This commit is contained in:
committed by
Akshay Joshi
parent
7361470b64
commit
dc4571a3c8
@@ -102,6 +102,9 @@ class SearchObjectsHelper:
|
||||
|
||||
show_node_prefs = self.get_show_node_prefs()
|
||||
node_labels = self.get_supported_types(skip_check=True)
|
||||
# escape the single quote from search text
|
||||
text = text.replace("'", "''")
|
||||
|
||||
# Column catalog_level has values as
|
||||
# N - Not a catalog schema
|
||||
# D - Catalog schema with DB support - pg_catalog
|
||||
|
||||
Reference in New Issue
Block a user