Fixes #1143 - Update the comments in edit mode for the foreign data

wrapper, and foreign table objects.
pull/3/head
Murtuza Zabuawala 2016-05-28 19:45:10 +05:30 committed by Ashesh Vashi
parent 2fb1e96e2f
commit fd0d740acc
7 changed files with 7 additions and 7 deletions

View File

@ -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 }};

View File

@ -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 }};

View File

@ -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 }};

View File

@ -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 }};

View File

@ -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 }};

View File

@ -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 }};

View File

@ -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 }};