mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed auto complete issue for EPAS database server.
This commit is contained in:
parent
283a69a21a
commit
b665f8fac8
@ -140,6 +140,11 @@ class SQLAutoComplete(object):
|
|||||||
status, res = self.conn.execute_dict(query)
|
status, res = self.conn.execute_dict(query)
|
||||||
if status:
|
if status:
|
||||||
for record in res['rows']:
|
for record in res['rows']:
|
||||||
|
# 'public' is a keyword in EPAS database server. Don't add
|
||||||
|
# this into the list of keywords.
|
||||||
|
# This is a hack to fix the issue in autocomplete.
|
||||||
|
if record['word'].lower() == 'public':
|
||||||
|
continue
|
||||||
self.keywords.append(record['word'])
|
self.keywords.append(record['word'])
|
||||||
|
|
||||||
self.prioritizer = PrevalenceCounter(self.keywords)
|
self.prioritizer = PrevalenceCounter(self.keywords)
|
||||||
|
Loading…
Reference in New Issue
Block a user