Fixed an issue where the wrong SQL displayed in difference if the user create 

an RLS policy on the table without a column. Fixes #7637
This commit is contained in:
Nikhil Mohite 2022-09-15 16:40:03 +05:30 committed by Akshay Joshi
parent 9ac233f244
commit 769f58970e
2 changed files with 4 additions and 4 deletions

View File

@ -32,6 +32,7 @@ Bug fixes
| `Issue #7557 <https://redmine.postgresql.org/issues/7557>`_ - Fixed an issue where pgAdmin failed to start due to bin path migration.
| `Issue #7580 <https://redmine.postgresql.org/issues/7580>`_ - Fixed an issue where backup does not work due to parameter 'preexec_fn' no longer being supported.
| `Issue #7607 <https://redmine.postgresql.org/issues/7607>`_ - Ensure that the browser tree should be refreshed after changing the ownership.
| `Issue #7637 <https://redmine.postgresql.org/issues/7637>`_ - Fixed an issue where the wrong SQL displayed in difference if the user create an RLS policy on the table without a column.
| `Issue #7644 <https://redmine.postgresql.org/issues/7644>`_ - Ensure that the dump servers functionality works from setup.py.
| `Issue #7646 <https://redmine.postgresql.org/issues/7646>`_ - Ensure that the Import/Export server menu option is visible.
| `Issue #7648 <https://redmine.postgresql.org/issues/7648>`_ - Fixed API test case for change password in the server mode.

View File

@ -633,11 +633,10 @@ class RowSecurityView(PGChildNodeView):
drop_sql = ''
if drop_req:
drop_sql = '\n' + self.delete(gid=1, sid=sid, did=did,
scid=scid, tid=tid,
plid=oid, only_sql=True)
drop_sql = self.delete(gid=1, sid=sid, did=did,
scid=scid, tid=tid, plid=oid, only_sql=True)
if drop_sql != '':
sql = drop_sql + '\n\n' + sql
sql = drop_sql + '\n\n'
return sql
@check_precondition