mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Show complete SQL for FTS dictionaries. Fixes #2949
This commit is contained in:
parent
d8194e7c0f
commit
e64bc2a821
@ -799,6 +799,14 @@ class FtsDictionaryView(PGChildNodeView):
|
||||
data=res['rows'][0],
|
||||
conn=self.conn, is_displaying=True)
|
||||
|
||||
sql_header = u"""-- Text Search Dictionary: {0}
|
||||
|
||||
-- DROP TEXT SEARCH DICTIONARY {0};
|
||||
|
||||
""".format(self.qtIdent(self.conn, res['rows'][0]['schema'], res['rows'][0]['name']))
|
||||
|
||||
sql = sql_header + sql
|
||||
|
||||
return ajax_response(response=sql.strip('\n'))
|
||||
|
||||
@check_precondition
|
||||
|
Loading…
Reference in New Issue
Block a user