Fixes #1143 - Update the comments in edit mode for the foreign data
wrapper, and foreign table objects.pull/3/head
parent
2fb1e96e2f
commit
fd0d740acc
|
@ -19,7 +19,7 @@ ALTER SERVER {{ conn|qtIdent(data.name) }}
|
|||
|
||||
{% endif %}
|
||||
{# ============= Update foreign server comments ============= #}
|
||||
{% if data.description and data.description != o_data.description %}
|
||||
{% if data.description is defined and data.description != o_data.description %}
|
||||
COMMENT ON SERVER {{ conn|qtIdent(data.name) }}
|
||||
IS {{ data.description|qtLiteral }};
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ ALTER SERVER {{ conn|qtIdent(data.name) }}
|
|||
|
||||
{% endif %}
|
||||
{# ============= Update foreign server comments ============= #}
|
||||
{% if data.description and data.description != o_data.description %}
|
||||
{% if data.description is defined and data.description != o_data.description %}
|
||||
COMMENT ON SERVER {{ conn|qtIdent(data.name) }}
|
||||
IS {{ data.description|qtLiteral }};
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ ALTER FOREIGN DATA WRAPPER {{ conn|qtIdent(data.name) }}
|
|||
|
||||
{% endif %}
|
||||
{# ============= Update foreign data wrapper comments ============= #}
|
||||
{% if data.description and data.description != o_data.description %}
|
||||
{% if data.description is defined and data.description != o_data.description %}
|
||||
COMMENT ON FOREIGN DATA WRAPPER {{ conn|qtIdent(data.name) }}
|
||||
IS {{ data.description|qtLiteral }};
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ ALTER FOREIGN DATA WRAPPER {{ conn|qtIdent(data.name) }}
|
|||
|
||||
{% endif %}
|
||||
{# ============= Update foreign data wrapper comments ============= #}
|
||||
{% if data.description and data.description != o_data.description %}
|
||||
{% if data.description is defined and data.description != o_data.description %}
|
||||
COMMENT ON FOREIGN DATA WRAPPER {{ conn|qtIdent(data.name) }}
|
||||
IS {{ data.description|qtLiteral }};
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@ ALTER FOREIGN TABLE {{ conn|qtIdent(o_data.basensp, name) }}
|
|||
{{ SECLABLE.SET(conn, 'FOREIGN TABLE', name, r.provider, r.security_label, o_data.basensp) }}
|
||||
{% endfor %}
|
||||
{% endif -%}
|
||||
{% if data.description %}
|
||||
{% if data.description is defined and data.description != o_data.description%}
|
||||
|
||||
COMMENT ON FOREIGN TABLE {{ conn|qtIdent(o_data.basensp, name) }}
|
||||
IS {{ data.description|qtLiteral }};
|
||||
|
|
|
@ -135,7 +135,7 @@ ALTER FOREIGN TABLE {{ conn|qtIdent(o_data.basensp, name) }}
|
|||
{{ SECLABLE.SET(conn, 'FOREIGN TABLE', name, r.provider, r.security_label, o_data.basensp) }}
|
||||
{% endfor %}
|
||||
{% endif -%}
|
||||
{% if data.description %}
|
||||
{% if data.description is defined and data.description != o_data.description%}
|
||||
|
||||
COMMENT ON FOREIGN TABLE {{ conn|qtIdent(o_data.basensp, name) }}
|
||||
IS {{ data.description|qtLiteral }};
|
||||
|
|
|
@ -147,7 +147,7 @@ ALTER FOREIGN TABLE {{ conn|qtIdent(o_data.basensp, name) }}
|
|||
{{ SECLABLE.SET(conn, 'FOREIGN TABLE', name, r.provider, r.security_label, o_data.basensp) }}
|
||||
{% endfor %}
|
||||
{% endif -%}
|
||||
{% if data.description %}
|
||||
{% if data.description is defined and data.description != o_data.description%}
|
||||
|
||||
COMMENT ON FOREIGN TABLE {{ conn|qtIdent(o_data.basensp, name) }}
|
||||
IS {{ data.description|qtLiteral }};
|
||||
|
|
Loading…
Reference in New Issue