Quote the owner name when creating types. Fixes #2787

This commit is contained in:
Murtuza Zabuawala 2017-11-21 11:32:27 +00:00 committed by Dave Page
parent a85538a1fc
commit dd8e2fe8a6
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ CREATE TYPE {% if data.schema %}{{ conn|qtIdent(data.schema, data.name) }}{% els
ALTER TYPE {% if data.schema %}{{ conn|qtIdent(data.schema, data.name) }}{% else %}{{ conn|qtIdent(data.name) }}{% endif %}
OWNER TO {{data.typeowner}};
OWNER TO {{ conn|qtIdent(data.typeowner) }};
{% endif %}
{### Type Comments ###}
{% if data and data.description %}

View File

@ -5,7 +5,7 @@
{# Below will change object owner #}
{% if data.typeowner and data.typeowner != o_data.typeowner %}
ALTER TYPE {{ conn|qtIdent(o_data.schema, o_data.name) }}
OWNER TO {{ data.typeowner }};
OWNER TO {{ conn|qtIdent(data.typeowner) }};
{% endif %}
{#======================================#}