Fixed an issue where custom sequences are not visible when show system objects are set to false. Fixes #5833

This commit is contained in:
Akshay Joshi 2020-09-15 12:58:43 +05:30
parent 7dca844cbe
commit 324e3e74be
2 changed files with 3 additions and 2 deletions

View File

@ -43,4 +43,5 @@ Bug fixes
| `Issue #5794 <https://redmine.postgresql.org/issues/5794>`_ - Fixed excessive CPU usage by stopping the indefinite growth of the graph dataset.
| `Issue #5815 <https://redmine.postgresql.org/issues/5815>`_ - Fixed an issue where clicking on the 'Generate script' button shows a forever spinner due to pop up blocker.
| `Issue #5816 <https://redmine.postgresql.org/issues/5816>`_ - Ensure that the 'CREATE SCHEMA' statement should be present in the generated script if the schema is not present in the target database.
| `Issue #5820 <https://redmine.postgresql.org/issues/5820>`_ - Fixed an issue while refreshing Resource Group.
| `Issue #5820 <https://redmine.postgresql.org/issues/5820>`_ - Fixed an issue while refreshing Resource Group.
| `Issue #5833 <https://redmine.postgresql.org/issues/5833>`_ - Fixed an issue where custom sequences are not visible when show system objects are set to false.

View File

@ -254,7 +254,7 @@ class SequenceView(PGChildNodeView, SchemaDiffObjectCompare):
show_system_objects=True)
seq = [dep for dep in system_seq
if dep['type'] == 'column' and dep['field'] == 'internal']
if not seq:
if len(seq) > 0:
continue
# Append the node into the newly created list