Fixed search object issue when the object name contains special characters. Fixes #5401

This commit is contained in:
Aditya Toshniwal
2020-04-20 18:40:40 +05:30
committed by Akshay Joshi
parent 7361470b64
commit dc4571a3c8
4 changed files with 15 additions and 3 deletions

View File

@@ -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