Fix issue renaming FTS Parser.

pull/3/head
Sanket Mehta 2016-04-14 20:14:32 +01:00 committed by Dave Page
parent e09aa90614
commit b47577390a
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
{% if data %} {% if data %}
{% if data.name and data.name != o_data.name %} {% if data.name and data.name != o_data.name %}
ALTER TEXT SEARCH PARSER {{conn|qtIdent(o_data.schema)}}.{{conn|qtIdent(o_data.name)}} ALTER TEXT SEARCH PARSER {{conn|qtIdent(o_data.schema)}}.{{conn|qtIdent(o_data.name)}}
RENAME TO {{data.name}}; RENAME TO {{conn|qtIdent(data.name)}};
{% endif %} {% endif %}
{#in case of rename, use new fts template name #} {#in case of rename, use new fts template name #}
@ -19,4 +19,4 @@ ALTER TEXT SEARCH PARSER {{conn|qtIdent(o_data.schema)}}.{{conn|qtIdent(name)}}
COMMENT ON TEXT SEARCH PARSER {{conn|qtIdent(o_data.schema)}}.{{conn|qtIdent(name)}} COMMENT ON TEXT SEARCH PARSER {{conn|qtIdent(o_data.schema)}}.{{conn|qtIdent(name)}}
IS {{ data.description|qtLiteral }}; IS {{ data.description|qtLiteral }};
{% endif %} {% endif %}
{% endif %} {% endif %}