mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
committed by
Akshay Joshi
parent
9ac233f244
commit
769f58970e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user