Fix RE-SQL for rules which got the table name wrong in the header and DROP statement. Fixes #2422

This commit is contained in:
Dave Page 2017-05-19 12:21:29 +01:00
parent eb18320950
commit 04ce72a6ae

View File

@ -1,8 +1,8 @@
{# ============Create Rule============= #}
{% if display_comments %}
-- Rule: {{ conn|qtIdent(data.name) }} ON {{ conn|qtIdent(data.schema, data.name) }}
-- Rule: {{ conn|qtIdent(data.name) }} ON {{ conn|qtIdent(data.schema, data.view) }}
-- DROP Rule {{ conn|qtIdent(data.name) }} ON {{ conn|qtIdent(data.schema, data.name) }};
-- DROP Rule {{ conn|qtIdent(data.name) }} ON {{ conn|qtIdent(data.schema, data.view) }};
{% endif %}
{% if data.name and data.schema and data.view %}