Allow package bodies to be dropped. Fixes #1867

This commit is contained in:
Surinder Kumar 2016-10-21 15:24:11 +01:00 committed by Dave Page
parent a97d21cc90
commit 8e9108e0f3
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{% import 'macros/schemas/privilege.macros' as PRIVILEGE %}
{% if data %}
{% if data.pkgheadsrc is defined and data.pkgheadsrc != o_data.pkgheadsrc and o_data.pkgbodysrc != None %}
{% if data.pkgheadsrc is defined and data.pkgheadsrc != o_data.pkgheadsrc and o_data.pkgbodysrc != None or (data.pkgbodysrc is defined and data.pkgbodysrc == '') %}
DROP PACKAGE BODY {{ conn|qtIdent(data.schema,data.name) }};
{% endif %}
{% if data.pkgheadsrc %}

View File

@ -1,7 +1,7 @@
{% import 'macros/schemas/privilege.macros' as PRIVILEGE %}
{% if data %}
{% if data.pkgheadsrc is defined and data.pkgheadsrc != o_data.pkgheadsrc and o_data.pkgbodysrc != None %}
{% if data.pkgheadsrc is defined and data.pkgheadsrc != o_data.pkgheadsrc and o_data.pkgbodysrc != None or (data.pkgbodysrc is defined and data.pkgbodysrc == '') %}
DROP PACKAGE BODY {{ conn|qtIdent(data.schema,data.name) }};
{% endif %}
{% if data.pkgheadsrc %}