mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Quote the owner name when creating types. Fixes #2787
This commit is contained in:
parent
a85538a1fc
commit
dd8e2fe8a6
@ -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 %}
|
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 %}
|
{% endif %}
|
||||||
{### Type Comments ###}
|
{### Type Comments ###}
|
||||||
{% if data and data.description %}
|
{% if data and data.description %}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{# Below will change object owner #}
|
{# Below will change object owner #}
|
||||||
{% if data.typeowner and data.typeowner != o_data.typeowner %}
|
{% if data.typeowner and data.typeowner != o_data.typeowner %}
|
||||||
ALTER TYPE {{ conn|qtIdent(o_data.schema, o_data.name) }}
|
ALTER TYPE {{ conn|qtIdent(o_data.schema, o_data.name) }}
|
||||||
OWNER TO {{ data.typeowner }};
|
OWNER TO {{ conn|qtIdent(data.typeowner) }};
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{#======================================#}
|
{#======================================#}
|
||||||
@ -154,4 +154,4 @@ ALTER TYPE {% if data.name and data.name != o_data.name %}{{ conn|qtIdent(o_data
|
|||||||
{% else %}{{ conn|qtIdent(o_data.schema, o_data.name) }}
|
{% else %}{{ conn|qtIdent(o_data.schema, o_data.name) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
SET SCHEMA {{ conn|qtIdent(data.schema) }};
|
SET SCHEMA {{ conn|qtIdent(data.schema) }};
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user