Fix an issue where refreshing a package results in the change in the object completely. Fixes #5066.

This commit is contained in:
Akshay Joshi 2020-01-17 12:01:37 +05:30
parent e2bfac9e42
commit af56b92af4
3 changed files with 13 additions and 4 deletions

View File

@ -26,4 +26,5 @@ Bug fixes
| `Issue #4827 <https://redmine.postgresql.org/issues/4827>`_ - Fix column resizable issue in the file explorer dialog.
| `Issue #5000 <https://redmine.postgresql.org/issues/5000>`_ - Logout the pgAdmin session when no user activity of mouse move, click or keypress.
| `Issue #5025 <https://redmine.postgresql.org/issues/5025>`_ - Fix an issue where setting STORAGE_DIR to empty should show all the volumes on Windows in server mode.
| `Issue #5066 <https://redmine.postgresql.org/issues/5066>`_ - Fix an issue where refreshing a package results in the change in the object completely.
| `Issue #5074 <https://redmine.postgresql.org/issues/5074>`_ - Fix an issue where select, insert and update scripts on tables throwing an error.

View File

@ -3,4 +3,7 @@ SELECT
FROM
pg_namespace nsp
WHERE nspparent = {{scid}}::oid
{% if pkgid %}
AND nsp.oid = {{pkgid}}::oid
{% endif %}
ORDER BY nspname;

View File

@ -1,5 +1,10 @@
SELECT nsp.oid, nspname AS name
FROM pg_namespace nsp
SELECT
nsp.oid, nspname AS name
FROM
pg_namespace nsp
WHERE nspparent = {{scid}}::oid
{% if pkgid %}
AND nsp.oid = {{pkgid}}::oid
{% endif %}
AND nspobjecttype = 0
ORDER BY nspname;