From 629d3c7e2e6febe6a16c5c2c47407ef414a98150 Mon Sep 17 00:00:00 2001 From: Pazus Date: Sat, 5 May 2018 08:51:03 +0300 Subject: [PATCH 1/2] Fixed installation order to eliminate compilation error warning Removed ampersand symbol as some IDEs (PLSQL Developer) recognize it as a parameter to be defined Removed unnecessary drop as ut_event_listener is already several lines before Fixes #657 --- source/expectations/data_values/ut_compound_data_value.tpb | 3 ++- source/install.sql | 3 ++- source/uninstall.sql | 2 -- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/expectations/data_values/ut_compound_data_value.tpb b/source/expectations/data_values/ut_compound_data_value.tpb index b7c43d2d8..164bc1129 100644 --- a/source/expectations/data_values/ut_compound_data_value.tpb +++ b/source/expectations/data_values/ut_compound_data_value.tpb @@ -132,6 +132,7 @@ create or replace type body ut_compound_data_value as l_result integer; --the XML stylesheet is applied on XML representation of data to exclude column names from comparison --column names and data-types are compared separately + --user CHR(38) instead of ampersand to eliminate define request when installing through some IDEs l_xml_data_fmt constant xmltype := xmltype( q'[ @@ -139,7 +140,7 @@ create or replace type body ut_compound_data_value as - + '||CHR(38)||'#xD; , diff --git a/source/install.sql b/source/install.sql index 4054086a6..09b601ff4 100644 --- a/source/install.sql +++ b/source/install.sql @@ -29,6 +29,7 @@ whenever oserror exit failure rollback prompt Switching current schema to &&ut3_owner prompt &&line_separator alter session set current_schema = &&ut3_owner; +alter session set PLSQL_WARNINGS='ENABLE:ALL'; --set define off --dbms_output buffer cache table @@ -166,7 +167,6 @@ prompt Installing DBMSPLSQL Tables objects into &&ut3_owner schema @@install_component.sql 'expectations/data_values/ut_compound_data_diff_tmp.sql' @@install_component.sql 'expectations/data_values/ut_data_value.tps' @@install_component.sql 'expectations/data_values/ut_compound_data_value.tps' -@@install_component.sql 'expectations/data_values/ut_compound_data_helper.pks' @@install_component.sql 'expectations/data_values/ut_data_value_anydata.tps' @@install_component.sql 'expectations/data_values/ut_data_value_collection.tps' @@install_component.sql 'expectations/data_values/ut_data_value_object.tps' @@ -182,6 +182,7 @@ prompt Installing DBMSPLSQL Tables objects into &&ut3_owner schema @@install_component.sql 'expectations/data_values/ut_data_value_timestamp_ltz.tps' @@install_component.sql 'expectations/data_values/ut_data_value_varchar2.tps' @@install_component.sql 'expectations/data_values/ut_data_value_yminterval.tps' +@@install_component.sql 'expectations/data_values/ut_compound_data_helper.pks' @@install_component.sql 'expectations/matchers/ut_matcher.tps' @@install_component.sql 'expectations/matchers/ut_comparison_matcher.tps' @@install_component.sql 'expectations/matchers/ut_be_false.tps' diff --git a/source/uninstall.sql b/source/uninstall.sql index 6da0e4fd9..c7a04c4d0 100644 --- a/source/uninstall.sql +++ b/source/uninstall.sql @@ -258,8 +258,6 @@ drop type ut_expectation_result force; drop package ut_event_manager; -drop type ut_event_listener force; - drop type ut_event_item force; drop type ut_key_value_pairs force; From 98b0401e890ebba72132023423c1c714a5a25c7a Mon Sep 17 00:00:00 2001 From: Pazus Date: Sat, 5 May 2018 11:21:27 +0300 Subject: [PATCH 2/2] Removed warnings from install script --- source/install.sql | 1 - 1 file changed, 1 deletion(-) diff --git a/source/install.sql b/source/install.sql index 09b601ff4..3050349e6 100644 --- a/source/install.sql +++ b/source/install.sql @@ -29,7 +29,6 @@ whenever oserror exit failure rollback prompt Switching current schema to &&ut3_owner prompt &&line_separator alter session set current_schema = &&ut3_owner; -alter session set PLSQL_WARNINGS='ENABLE:ALL'; --set define off --dbms_output buffer cache table