mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-04 12:40:56 -06:00
Ensure that search object functionality works with case insensitive string. Fixes #5858
This commit is contained in:
parent
6addd207af
commit
38b90f7b00
@ -17,4 +17,5 @@ Housekeeping
|
||||
Bug fixes
|
||||
*********
|
||||
|
||||
| `Issue #5858 <https://redmine.postgresql.org/issues/5858>`_ - Ensure that search object functionality works with case insensitive string.
|
||||
| `Issue #5911 <https://redmine.postgresql.org/issues/5911>`_ - Ensure that macros should be run on the older version of Safari and Chrome.
|
||||
|
@ -82,7 +82,7 @@ define([
|
||||
alertify,
|
||||
{},
|
||||
);
|
||||
dialog.draw(action, item, {}, pgBrowser.stdW.calc(pgBrowser.stdW.md), pgBrowser.stdH.calc(pgBrowser.stdW.lg));
|
||||
dialog.draw(action, item, {}, pgBrowser.stdW.calc(pgBrowser.stdW.md), pgBrowser.stdH.calc(pgBrowser.stdH.lg));
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -88,12 +88,6 @@ class SearchObjectsHelper:
|
||||
**kwargs
|
||||
)
|
||||
|
||||
def finalize_id_path(self, path, base_path):
|
||||
if base_path is not None:
|
||||
path = '{0}/{1}'.format(base_path, path)
|
||||
|
||||
return path
|
||||
|
||||
def search(self, text, obj_type=None):
|
||||
conn = self.manager.connection(did=self.did)
|
||||
last_system_oid = (self.manager.db_info[self.did])['datlastsysoid'] \
|
||||
@ -110,7 +104,8 @@ class SearchObjectsHelper:
|
||||
# D - Catalog schema with DB support - pg_catalog
|
||||
# O - Catalog schema with object support only - info schema, dbo, sys
|
||||
status, res = conn.execute_dict(
|
||||
self.get_sql('search.sql', search_text=text, obj_type=obj_type,
|
||||
self.get_sql('search.sql',
|
||||
search_text=text.lower(), obj_type=obj_type,
|
||||
show_system_objects=self.show_system_objects,
|
||||
show_node_prefs=show_node_prefs, _=gettext,
|
||||
last_system_oid=last_system_oid)
|
||||
|
Loading…
Reference in New Issue
Block a user