Fixed an issue where the Browser tree gets disappears when scrolling sequences. Fixes #7100
parent
38e5ded821
commit
374c5e952f
|
@ -11,6 +11,7 @@ notes for it.
|
|||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
release_notes_6_5
|
||||
release_notes_6_4
|
||||
release_notes_6_3
|
||||
release_notes_6_2
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
************
|
||||
Version 6.5
|
||||
************
|
||||
|
||||
Release date: 2021-02-10
|
||||
|
||||
This release contains a number of bug fixes and new features since the release of pgAdmin4 6.4.
|
||||
|
||||
New features
|
||||
************
|
||||
|
||||
|
||||
Housekeeping
|
||||
************
|
||||
|
||||
|
||||
Bug fixes
|
||||
*********
|
||||
|
||||
| `Issue #7100 <https://redmine.postgresql.org/issues/7100>`_ - Fixed an issue where the Browser tree gets disappears when scrolling sequences.
|
|
@ -208,10 +208,16 @@ class SequenceView(PGChildNodeView, SchemaDiffObjectCompare):
|
|||
|
||||
"""
|
||||
res = []
|
||||
show_internal = False
|
||||
# If show_system_objects is true then no need to hide any sequences.
|
||||
if self.blueprint.show_system_objects:
|
||||
show_internal = True
|
||||
|
||||
SQL = render_template(
|
||||
"/".join([self.template_path, self._NODES_SQL]),
|
||||
scid=scid,
|
||||
seid=seid
|
||||
seid=seid,
|
||||
show_internal=show_internal
|
||||
)
|
||||
status, rset = self.conn.execute_dict(SQL)
|
||||
if not status:
|
||||
|
@ -231,8 +237,7 @@ class SequenceView(PGChildNodeView, SchemaDiffObjectCompare):
|
|||
status=200
|
||||
)
|
||||
|
||||
sequence_nodes = self._get_sequence_nodes(rset['rows'])
|
||||
for row in sequence_nodes:
|
||||
for row in rset['rows']:
|
||||
res.append(
|
||||
self.blueprint.generate_browser_node(
|
||||
row['oid'],
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
SELECT cl.oid as oid, relname as name, relnamespace as schema
|
||||
FROM pg_catalog.pg_class cl
|
||||
{% if show_internal %}
|
||||
LEFT JOIN pg_catalog.pg_depend d1 ON d1.refobjid = cl.oid AND d1.deptype = 'i'
|
||||
{% endif %}
|
||||
WHERE
|
||||
relkind = 'S'
|
||||
{% if scid %}
|
||||
|
|
Loading…
Reference in New Issue