Ensure that user should be able to clear comments in RLS Policy.

This commit is contained in:
Rohit Bhati 2024-06-17 18:11:57 +05:30 committed by GitHub
parent c3d6f8887a
commit 1ba9f005a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,7 +33,8 @@ ALTER POLICY {{ conn|qtIdent(o_data.name) }} ON {{conn|qtIdent(o_data.schema, o_
{#####################################################}
{## Change policy comment ##}
{#####################################################}
{% if data.description and o_data.description != data.description %}
{% if data.description is defined and data.description != o_data.description %}
COMMENT ON POLICY {{ conn|qtIdent(o_data.name) }} ON {{conn|qtIdent(o_data.schema, o_data.table)}}
IS {{ data.description|qtLiteral(conn) }};
{% endif %}